Data Structures & Algorithms

Data Structures Algorithms

Data Structures

Linear Data Structure

[1] LinkedList
LinkedList Implementation

[2] Queue
Queue Implementation

[3] Stack
Stack Implementation

Tree

Tree Traveral
二叉树遍历

[1] Threaded binary tree

[2] Tries

[3] Segment Tree

[4] Splay Tree

Heap

Graph

Graph and its representations
Why is the complexity of DFS of adjacency lists is O(V+E)

[1] Minimum Spanning Tree (MST)

[2] Shortest Path

[3] Detect Cycle in an Undirected Graph

[4] Topological Sorting

[5] Others

Algorithms

Backtracking

Dynamic Programming

How should I explain dynamic programming to a 4-year-old?

Greedy

Search Algorithm

Linear Search, Binary Search Tree and Hash Table

String:

[1] Sliding Window:

[2] Palindromic:

[3] Longest Common Prefix:

Horizontal scanning, Vertical scanning, Divide and conquer, Binary search, Prefix trie.

[4] Substring search algorithms
KMP and Rabin-Karp

Array

[1] Permutations

Sorting Methods

Sorting_algorithm wiki

Sorting algorithms based on comparison

Sorting algorithms NOT based on comparison

0%