MCPcopy Index your code
hub / github.com/ua-nick/Data-Structures-and-Algorithms

github.com/ua-nick/Data-Structures-and-Algorithms @main

repository ↗ · DeepWiki ↗ · Ask this repo → · + Follow
110 symbols 170 edges 41 files 0 documented · 0% updated 2y ago★ 2,7736 open issues
README

Data Structures and Algorithms

Go Report Card Build Status License

Clean and simple implementation in Go

Implementation

There are several data structures and algorithms implemented in this project. The list will be replenished with time.

Data structures
  • Circular Buffer
  • Linked List
  • Doubly Linked List
  • Stack
  • Queue
  • Binary Tree
  • Hash Table
  • Trie
Searching algorithms
  • Linear Search
  • Binary Search
  • Jump Search
  • Interpolation Search
  • Exponential Search
  • Ternary Search
String searching algorithms
  • Naive String Search
  • Rabin-Karp Algorithm
Sorting algorithms
  • Selection Sort
  • Insertion Sort
  • Bubble Sort
  • Comb Sort
  • Cocktail Sort
  • Gnome Sort
  • Merge Sort

Usage

The library is not intended for direct use by importing. We strongly recommend copying the necessary implementations and adjusting to your case.

You can download the source using go get command:

go get github.com/floyernick/Data-Structures-and-Algorithms

Don't forget about proverb:

A little copying is better than a little dependency.

Contribute

We would be happy to receive your propositions of improvement! Read Contributing Guide for more details.

License

This project is licensed under the MIT License.

Authors

Mykyta Paliienko - GitHub profile

Core symbols most depended-on inside this repo

generateHash
called by 4
HashTable/HashTable.go
calculateHash
called by 2
RabinKarp/RabinKarp.go
ExponentialSearch
called by 1
ExponentialSearch/ExponentialSearch.go
BinarySearch
called by 1
ExponentialSearch/ExponentialSearch.go
BinarySearch
called by 1
BinarySearch/BinarySearch.go
JumpSearch
called by 1
JumpSearch/JumpSearch.go
CombSort
called by 1
CombSort/CombSort.go
LinearSearch
called by 1
LinearSearch/LinearSearch.go

Shape

Method 53
Function 41
Struct 16

Languages

Go100%

Modules by API surface

DoublyLinkedList/DoublyLinkedList.go12 symbols
LinkedList/LinkedList.go11 symbols
Stack(LinkedList)/Stack.go8 symbols
Queue(LinkedList)/Queue.go8 symbols
Stack(Array)/Stack.go7 symbols
HashTable/HashTable.go7 symbols
BinaryTree/BinaryTree.go7 symbols
Trie/Trie.go6 symbols
CircularBuffer/CircularBuffer.go4 symbols
TernarySearch/TernarySearch_test.go2 symbols
RabinKarp/RabinKarp.go2 symbols
MergeSort/MergeSort.go2 symbols

For agents

$ claude mcp add Data-Structures-and-Algorithms \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact