Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Data Structures and Their Operations

15

Flashcards

0/15

Still learning
StarStarStarStar

Queue

StarStarStarStar

Complexity: Access - O(n), Search - O(n), Insertion - O(1), Deletion - O(1)

StarStarStarStar

AVL Tree

StarStarStarStar

Complexity: Access - O(log n), Search - O(log n), Insertion - O(log n), Deletion - O(log n)

StarStarStarStar

Red-Black Tree

StarStarStarStar

Complexity: Access - O(log n), Search - O(log n), Insertion - O(log n), Deletion - O(log n)

StarStarStarStar

Graph

StarStarStarStar

Complexity: Varies widely based on representation and algorithm.

StarStarStarStar

Fenwick Tree (Binary Indexed Tree)

StarStarStarStar

Complexity: Query - O(log n), Update - O(log n)

StarStarStarStar

Linked List

StarStarStarStar

Complexity: Access - O(n), Search - O(n), Insertion - O(1)*, Deletion - O(1)*

StarStarStarStar

Array

StarStarStarStar

Complexity: Access - O(1), Search - O(n), Insertion - O(n), Deletion - O(n)

StarStarStarStar

Binary Search Tree (BST)

StarStarStarStar

Complexity: Access - O(log n), Search - O(log n), Insertion - O(log n), Deletion - O(log n) - Average case

StarStarStarStar

B-Tree

StarStarStarStar

Complexity: Access - O(log n), Search - O(log n), Insertion - O(log n), Deletion - O(log n)

StarStarStarStar

Stack

StarStarStarStar

Complexity: Access - O(n), Search - O(n), Insertion - O(1), Deletion - O(1)

StarStarStarStar

Segment Tree

StarStarStarStar

Complexity: Query - O(log n), Update - O(log n)

StarStarStarStar

Priority Queue

StarStarStarStar

Complexity: Access - O(1) for max/min element, Insertion - O(log n), Deletion of max/min - O(log n)

StarStarStarStar

Hash Table

StarStarStarStar

Complexity: Average Access - O(1), Search - O(1), Insertion - O(1), Deletion - O(1); Worst case O(n)

StarStarStarStar

Heap

StarStarStarStar

Complexity: Access max/min - O(1), Insertion - O(log n), Deletion max/min - O(log n)

StarStarStarStar

Trie

StarStarStarStar

Complexity: Access - O(length of key), Insertion - O(length of key), Deletion - O(length of key)

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.