Skip to content

Solutions for all exercises in the book Algorithms - 4th edition by Robert Sedgewick and Kevin Wayne

Notifications You must be signed in to change notification settings

gvlima/algorithms-4th-edition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Algorithms

This repository contains the solutions to the exercises from each chapter of the book, these solutions are meant to be helpful for those who want learn fundamental algorithms for sorting, searching, graphs and strings.

This book is widely used to study important and useful data structures and algorithms. The algorithms in this book were developed over the last 50 years that has become indispensable, not just for programmers and computer science students but for any student with interests in science, mathematics, and engineering.

Performance is a central consideration in the study of algorithms. Section 1.4 describes our approach to analyzing algorithm performance. The basis of our approach is the scientific method: we develop hypotheses about performance, create mathematical models, and run experiments to test them, repeating the process as necessary. (page 3)

Content

  • Chapter 1. Fundamentals
  • Chapter 2. Sorting
  • Chapter 3. Searching
  • Chapter 4. Graphs
  • Chapter 5. Strings
  • Chapter 6. Context

Notes

Topic Data Structure and Algorithms
data types stack, queue, bag, union-find, priority queue,
sorting quicksort, mergesort, heapsort
searching BTS, red-black BST, hash table
graphs BFS, DFS, Prim, Kruskal, Dijkstra
strings radix sorts, tries, KMP, regexps, data compression

About

Solutions for all exercises in the book Algorithms - 4th edition by Robert Sedgewick and Kevin Wayne

Topics

Resources

Stars

Watchers

Forks