Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azillion/zig-dsa-fun

it's zig, it's data structs and algos, it's fun
https://github.com/azillion/zig-dsa-fun

Last synced: 6 days ago
JSON representation

it's zig, it's data structs and algos, it's fun

Awesome Lists containing this project

README

        

# zig-dsa-fun

This is a collection of data structures and algorithms implemented in the Zig programming language. The goal is to provide a simple and easy-to-understand implementation of common data structures and algorithms.

## Data Structures
- [x] Hash Map
- [x] Dynamic Array
- [x] Singly Linked List
- [x] Doubly Linked List
- [x] Stack
- [x] Queue
- [ ] Heap
- [ ] Priority Queue
- [ ] Graph
- [ ] Trie
- [ ] Binary Search Tree
- [ ] Deque
- [ ] AVL Tree (?)
- [ ] Red-Black Tree (?)
- [ ] Disjoint Set (?)
- [ ] Bloom Filter (?)
- [ ] LRU Cache (?)
- [ ] LFU Cache (?)

## Algorithms
- [ ] Sorting
- [ ] Bubble Sort
- [ ] Selection Sort
- [ ] Insertion Sort
- [ ] Merge Sort
- [ ] Quick Sort
- [ ] Heap Sort
- [ ] Counting Sort
- [ ] Radix Sort
- [ ] Bucket Sort
- [ ] Searching
- [ ] Linear Search
- [ ] Binary Search
- [ ] Jump Search
- [ ] Interpolation Search
- [ ] Exponential Search
- [ ] Fibonacci Search
- [ ] Graph
- [ ] Breadth First Search
- [ ] Depth First Search
- [ ] Dijkstra's Algorithm
- [ ] Bellman-Ford Algorithm
- [ ] Floyd-Warshall Algorithm
- [ ] Prim's Algorithm
- [ ] Kruskal's Algorithm
- [ ] Topological Sort
- [ ] Strongly Connected Components
- [ ] A* Algorithm
- [ ] Travelling Salesman Problem

## Tests

To run tests, use the following command:

```bash
zig test src/ds/hash_map.zig
```