How max-gryshin/algorithms_and_data_structures works
This repository is a Go collection of algorithms, data structures, concurrency patterns, and small runnable examples—not a single end-user product. Its clearest application workflow is an HTTP client reaching the server started by cmd/server; that entry point constructs the HTTP server and runs it, and the server applies rate limiting to /hello. A separate command demonstrates a worker-pool workflow. The remaining modules are independent library or problem-solving implementations, so the graph groups them by capability without implying an execution pipeline. No README was provided; unsampled capabilities are represented from the file tree, and their internal relationships are omitted where source evidence is unavailable.
Main entry points: main.go Server command · server.go HTTP server · worker_pool.go Worker command · runner.go Lifecycle runner
Components 23
Runnable examples
- Server command
cmd/server/main.go - Lifecycle runner
pkg/runner/runner.go - Worker command
cmd/worker_pool.go
HTTP service
- HTTP server
pkg/http/server.go - Rate middleware
pkg/http/middleware/rate_limiter.go
Algorithm library
- Sorting algorithms
algorythm/sort - Compression
algorythm/compress - Optimization
problems/optimization - Graph algorithms
problems/graphs - Dynamic programming
problems/dynamic_programming - Backtracking
problems/backtracking - Array and string
problems - Search and windows
problems/sliding_window - Heap problems
problems/heap - RSA cryptography
cryptography/rsa - Tree algorithms
algorythm/bst/tree.go - Prefix sums
problems/prefix_sum
Data structures
- Core structures
data_structure - LRU cache
algorythm/cache/lru.go
Concurrency
- Worker pool
problems/concurrency/worker_pool.go - Rate limiters
problems/concurrency/rate_limiter - Concurrency patterns
problems/concurrency
Other components
- HTTP client
Connections 5
- HTTP client → Server command: requests service
- Server command → HTTP server: constructs server
cmd/server/main.go - Server command → Lifecycle runner: runs lifecycle
cmd/server/main.go - HTTP server → Rate middleware: wraps handler
pkg/http/server.go - Worker command → Worker pool: starts workers
cmd/worker_pool.go