What is an array?
An array is a collection of items of same data type stored at contiguous memory locations
What is a Linked List?
a linked list consists of nodes where each node contains a data field and a reference(link) to the next node in the list. (look a like an array but on different memory locations)
Downsides of a Linked List?
Upside of Linked List?
Faster to add or remove items
What is a hashtable (hashmap)
Hash Table is a data structure which stores data in an associative manner. In a hash table, data is stored in an array format, where each data value has its own unique index value.
Upside of a hashtable?
Fast searching, fast inserting
Downside of a hashtable
Takes more memory
What is a trie?
A trie (derived from retrieval) is a multiway tree data structure used for storing strings over an alphabet. It is used to store a large amount of strings. The pattern matching can be done efficiently using tries.
Upside of using a Trie
What a 3 downsides of using an Array?
What are 3 upsides of using an array?