Update README.md
This commit is contained in:
parent
13ca5ff03e
commit
ca2b4b234e
30
README.md
30
README.md
@ -689,21 +689,19 @@ Write code on a whiteboard or paper, not a computer. Test with some sample input
|
|||||||
- basic tree construction
|
- basic tree construction
|
||||||
- traversal
|
- traversal
|
||||||
- manipulation algorithms
|
- manipulation algorithms
|
||||||
- BFS (breadth-first search)
|
- [ ] [BFS(breadth-first search) and DFS(depth-first search)](https://www.youtube.com/watch?v=uWL6FJhq5fM)
|
||||||
- [MIT (video)](https://www.youtube.com/watch?v=s-CYnVz-uh4&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=13)
|
- BFS notes:
|
||||||
- level order (BFS, using queue)
|
- level order (BFS, using queue)
|
||||||
time complexity: O(n)
|
- time complexity: O(n)
|
||||||
space complexity: best: O(1), worst: O(n/2)=O(n)
|
- space complexity: best: O(1), worst: O(n/2)=O(n)
|
||||||
- DFS (depth-first search)
|
- DFS notes:
|
||||||
- [MIT (video)](https://www.youtube.com/watch?v=AfSk24UTFS8&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=14)
|
- time complexity: O(n)
|
||||||
- notes:
|
- space complexity:
|
||||||
time complexity: O(n)
|
|
||||||
space complexity:
|
|
||||||
best: O(log n) - avg. height of tree
|
best: O(log n) - avg. height of tree
|
||||||
worst: O(n)
|
worst: O(n)
|
||||||
- inorder (DFS: left, self, right)
|
- inorder (DFS: left, self, right)
|
||||||
- postorder (DFS: left, right, self)
|
- postorder (DFS: left, right, self)
|
||||||
- preorder (DFS: self, left, right)
|
- preorder (DFS: self, left, right)
|
||||||
|
|
||||||
- ### Binary search trees: BSTs
|
- ### Binary search trees: BSTs
|
||||||
- [ ] [Binary Search Tree Review (video)](https://www.youtube.com/watch?v=x6At0nzX92o&index=1&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6)
|
- [ ] [Binary Search Tree Review (video)](https://www.youtube.com/watch?v=x6At0nzX92o&index=1&list=PLA5Lqm4uh9Bbq-E0ZnqTIa8LRaL77ica6)
|
||||||
@ -852,7 +850,11 @@ Graphs can be used to represent many problems in computer science, so this secti
|
|||||||
- Familiarize yourself with each representation and its pros & cons
|
- Familiarize yourself with each representation and its pros & cons
|
||||||
- BFS and DFS - know their computational complexity, their tradeoffs, and how to implement them in real code
|
- BFS and DFS - know their computational complexity, their tradeoffs, and how to implement them in real code
|
||||||
- When asked a question, look for a graph-based solution first, then move on if none.
|
- When asked a question, look for a graph-based solution first, then move on if none.
|
||||||
|
|
||||||
|
- [ ] MIT(videos):
|
||||||
|
- [ ] [Breadth-First Search](https://www.youtube.com/watch?v=s-CYnVz-uh4&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=13)
|
||||||
|
- [ ] [Depth-First Search]((https://www.youtube.com/watch?v=AfSk24UTFS8&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=14)
|
||||||
|
|
||||||
- [ ] Skiena Lectures - great intro:
|
- [ ] Skiena Lectures - great intro:
|
||||||
- [ ] [CSE373 2012 - Lecture 11 - Graph Data Structures (video)](https://www.youtube.com/watch?v=OiXxhDrFruw&list=PLOtl7M3yp-DV69F32zdK7YJcNXpTunF2b&index=11)
|
- [ ] [CSE373 2012 - Lecture 11 - Graph Data Structures (video)](https://www.youtube.com/watch?v=OiXxhDrFruw&list=PLOtl7M3yp-DV69F32zdK7YJcNXpTunF2b&index=11)
|
||||||
- [ ] [CSE373 2012 - Lecture 12 - Breadth-First Search (video)](https://www.youtube.com/watch?v=g5vF8jscteo&list=PLOtl7M3yp-DV69F32zdK7YJcNXpTunF2b&index=12)
|
- [ ] [CSE373 2012 - Lecture 12 - Breadth-First Search (video)](https://www.youtube.com/watch?v=g5vF8jscteo&list=PLOtl7M3yp-DV69F32zdK7YJcNXpTunF2b&index=12)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user