# min-ki/ps architecture

> Architecture diagram of the GitHub repository min-ki/ps, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/min-ki/ps
- Repository: https://github.com/min-ki/ps

## Overview

##### Main Components (Top Level)
- Algorithms (Blue)
- Data Structures (Green)
- Problem Solutions (Orange)

##### Detailed Component Breakdown

a. Algorithms Section:
- Create subsections for each algorithm category:
- Sorting Algorithms (BubbleSort, MergeSort, etc.)
- Graph Algorithms (DFS)
- Recursion
- Path Finding (Floyd-Warshall)
- Complexity annotations (O(n), O(n²), etc.)

b. Data Structures Section:
- Implement hierarchical representation:
- Basic Structures (Arrays, Linked Lists)
- STL Containers (Stack, Queue, Vector)
- Relationships between implementations and their STL counterparts

c. Problem Solutions Section:
- By platform (BOJ, Programmers)
- Categorize by problem types:
- Implementation
- Mathematical
- Dynamic Programming
- Graph Theory
- String Processing
- Greedy Algorithms

##### Cross-Component Relationships
- Data structures to their implementation examples
- Language-specific implementations (C++, Python, Java, Kotlin)

##### Implementation Details
- Complexity analysis notes
- Frequently used patterns

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Main
        A[Algorithmic Learning System]
    end

    subgraph Algorithms
        direction TB
        ALGO[Algorithms Collection]:::algo
        SORT["Sorting Algorithms"]:::algo
        GRAPH["Graph Algorithms"]:::algo
        REC["Recursion"]:::algo
        PATH["Path Finding"]:::algo
        
        ALGO --> SORT
        ALGO --> GRAPH
        ALGO --> REC
        ALGO --> PATH

        %% Sorting details
        SORT --> BS[BubbleSort]:::impl
        SORT --> MS[MergeSort]:::impl

        %% Graph details
        GRAPH --> DFS[DFS]:::impl
        PATH --> FW[Floyd-Warshall]:::impl
    end

    subgraph "Data Structures"
        direction TB
        DS[Data Structures]:::ds
        BASIC[Basic Structures]:::ds
        STL[STL Containers]:::ds

        DS --> BASIC
        DS --> STL

        BASIC --> ARR[Arrays]:::impl
        BASIC --> LL[Linked Lists]:::impl

        STL --> STACK["Stack"]:::impl
        STL --> QUEUE["Queue"]:::impl
        STL --> VEC["Vector"]:::impl
    end

    subgraph "Problem Solutions"
        direction TB
        PS[Problem Solutions]:::ps
        BOJ["BOJ Problems"]:::ps
        PROG["Programmers"]:::ps

        PS --> BOJ
        PS --> PROG

        PROG --> IMPL[Implementation]:::impl
        PROG --> MATH[Mathematical]:::impl
        PROG --> DP[Dynamic Programming]:::impl
        PROG --> GT[Graph Theory]:::impl
        PROG --> SP[String Processing]:::impl
        PROG --> GREEDY[Greedy Algorithms]:::impl

        subgraph "Language Implementations"
            JAVA[Java]:::lang
            PYTHON[Python]:::lang
            KOTLIN[Kotlin]:::lang
        end
    end

    %% Cross-component relationships
    ALGO -.-> PS
    DS -.-> PS

    %% Click events
    click SORT "https://github.com/min-ki/PS/tree/master/Algorithm/Sort"
    click GRAPH "https://github.com/min-ki/PS/tree/master/Algorithm/Graph"
    click REC "https://github.com/min-ki/PS/tree/master/Algorithm/recursion"
    click PATH "https://github.com/min-ki/PS/tree/master/Algorithm/최단경로"
    click DS "https://github.com/min-ki/PS/tree/master/Data Structure"
    click STACK "https://github.com/min-ki/PS/tree/master/Data Structure/stack"
    click STL "https://github.com/min-ki/PS/tree/master/STL"
    click STACK "https://github.com/min-ki/PS/blob/master/STL/stl_stack.cpp"
    click QUEUE "https://github.com/min-ki/PS/blob/master/STL/stl_queue.cpp"
    click VEC "https://github.com/min-ki/PS/blob/master/STL/stl_vector.cpp"
    click BOJ "https://github.com/min-ki/PS/tree/master/BOJ"
    click PROG "https://github.com/min-ki/PS/tree/master/programmers"
    click JAVA "https://github.com/min-ki/PS/tree/master/programmers/java"
    click PYTHON "https://github.com/min-ki/PS/tree/master/programmers/python"
    click KOTLIN "https://github.com/min-ki/PS/tree/master/programmers/kotlin"

    %% Styling
    classDef algo fill:#a8d1ff,stroke:#333,stroke-width:2px
    classDef ds fill:#90EE90,stroke:#333,stroke-width:2px
    classDef ps fill:#FFB366,stroke:#333,stroke-width:2px
    classDef impl fill:#f9f9f9,stroke:#666,stroke-width:1px
    classDef lang fill:#E6E6FA,stroke:#333,stroke-width:1px

    %% Legend
    subgraph Legend
        L1[Algorithms]:::algo
        L2[Data Structures]:::ds
        L3[Problem Solutions]:::ps
        L4[Implementation]:::impl
        L5[Language]:::lang
    end
```
