DRAFT: Added link(s) for DSA Roadmap (#5935)
* Added various content links --------- Co-authored-by: dsh <daniel.s.holdsworth@gmail.com>pull/5947/head
parent
f7b42a63bf
commit
f143d800bd
4 changed files with 23 additions and 3 deletions
@ -1,3 +1,8 @@ |
||||
# Queues |
||||
|
||||
Queues are a type of data structure in which elements are held in a sequence and access is restricted to one end. Elements are added ("enqueued") at the rear end and removed ("dequeued") from the front. This makes queues a First-In, First-Out (FIFO) data structure. This type of organization is particularly useful for specific situations such as printing jobs, handling requests in a web server, scheduling tasks in a system, etc. Due to its FIFO property, once a new element is inserted into the queue, all elements that were inserted before the new element must be removed before the new element can be invoked. The fundamental operations associated with queues include Enqueue (insert), Dequeue (remove) and Peek (get the top element). |
||||
|
||||
Learn more from the following links: |
||||
|
||||
- [@video@Queue](https://www.youtube.com/watch?v=GYptUgnIM_I) |
||||
- [@video@Python Queue](https://www.youtube.com/watch?v=rUUrmGKYwHw |
||||
|
@ -1,3 +1,10 @@ |
||||
# Hash Tables |
||||
|
||||
`Hash Tables` are specialized data structures that allow fast access to data based on a key. Essentially, a hash table works by taking a key input, and then computes an index into an array in which the desired value can be found. It uses a hash function to calculate this index. Suppose the elements are integers and the hash function returns the value at the unit's place. If the given key is 22, it will check the value at index 2. Collisions occur when the hash function returns the same output for two different inputs. There are different methods to handle these collisions such as chaining and open addressing. |
||||
|
||||
Learn more from the following links: |
||||
|
||||
- [@video@Hash Table](https://www.youtube.com/watch?v=KEs5UyBJ39g&ab_channel=takeUforward) |
||||
- [@video@Python Hash Table Part 1](https://www.youtube.com/watch?v=ea8BRGxGmlA) |
||||
- [@video@Python Hash Table Part 2](https://www.youtube.com/watch?v=54iv1si4YCM) |
||||
|
||||
|
Loading…
Reference in new issue