FlashKeepers

Computer Science · College · College and University

Advanced Data Structures

Tries, segment trees, Fenwick trees, B-trees, AVL and red-black trees, skip lists, bloom filters and disjoint sets.

About this set

39 basic cards for College Computer Science. It opens with "What is a trie?" and "What is the time complexity of searching in a trie?". Study it alongside the other College sets below.

39 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is a trie?
Show answerA tree-based data structure where each node represents a character, used for efficient prefix-based searches.
What is the time complexity of searching in a trie?
Show answerO(m) where m is the length of the search string.
What is the main disadvantage of tries regarding space?
Show answerThey use significant memory because each node can have up to 26 pointers for lowercase letters.
What is a common use case for tries?
Show answerAutocomplete and spell-checking systems.
What property do tries enable for string searches?
Show answerPrefix matching: finding all words that start with a given prefix.
What is a segment tree?
Show answerA tree data structure used to efficiently answer range queries and update point values.
What is the time complexity for a range query in a segment tree?
Show answerO(log n) where n is the size of the array.
What is the time complexity for updating a value in a segment tree?
Show answerO(log n).
What is a common use case for segment trees?
Show answerRange minimum, maximum, or sum queries on an array.
What is a Fenwick tree?
Show answerA data structure that efficiently supports prefix sum queries and point updates in O(log n) time.
What is the time complexity of operations in a Fenwick tree?
Show answerO(log n) for both updates and prefix sum queries.
What is a primary use case for Fenwick trees?
Show answerComputing prefix sums and handling range sum updates efficiently.
What space advantage does a Fenwick tree have over a segment tree?
Show answerFenwick trees use O(n) space while segment trees typically use O(2n) space.
What is a B-tree?
Show answerA self-balancing tree where each node can have multiple children and keys, designed for external storage systems.
What is the time complexity for search, insert, and delete in a B-tree?
Show answerO(log n) in all cases.

24 more cards in the app

Study this set free