# jeethesh022/daa_lab architecture

> Architecture diagram of the GitHub repository jeethesh022/daa_lab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jeethesh022/daa_lab
- Repository: https://github.com/jeethesh022/daa_lab

## Overview

This repository is a set of standalone Python demonstrations of design-and-analysis algorithms, not a coordinated application. Its user-facing pattern is to run a script, which executes a sample algorithm and prints results or comparisons. The graph preserves the distinct algorithm topics and the internal helper calls visible in the excerpts; there are no shared runtime services or cross-file imports. The README is empty, so broader product intent and any relationships in unsampled context cannot be established.

Main entry points: [`DAA7.py`](https://github.com/jeethesh022/daa_lab/blob/main/DAA7.py) (N-Queens Solver), [`DAA10.py`](https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py) (Sort Benchmark Runner), [`DAA2.py`](https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py) (KMP Search), [`DAA3.py`](https://github.com/jeethesh022/daa_lab/blob/main/DAA3.py) (Kruskal MST)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_search["Searching"]
  node_naive_search["Naive Search<br/>[DAA2.py]"]
  node_kmp["KMP Search<br/>[DAA2.py]"]
  node_lps["LPS Builder<br/>[DAA2.py]"]
  node_rabin_karp["Rabin–Karp<br/>[DAA2.py]"]
  node_interpolation["Interpolation Search<br/>[interpolation.py]"]
  node_binary_search["Binary Search<br/>[interpolation.py]"]
end

subgraph group_graphs["Graph Algorithms"]
  node_kruskal["Kruskal MST<br/>[DAA3.py]"]
  node_union_find["Union-Find<br/>[DAA3.py]"]
  node_prim["Prim MST<br/>[DAA3.py]"]
  node_dijkstra["Dijkstra<br/>[DAA4.py]"]
  node_path_reconstruction["Path Reconstruction<br/>[DAA4.py]"]
end

subgraph group_optimization["Optimization"]
  node_tsp_brute["TSP Brute Force<br/>[DAA8.py]"]
  node_matrix_reduction["Matrix Reduction<br/>[DAA8.py]"]
  node_first_fit["First Fit<br/>[DAA9.py]"]
  node_first_fit_decreasing["First Fit Decreasing<br/>[DAA9.py]"]
  node_best_fit_decreasing["Best Fit Decreasing<br/>[DAA9.py]"]
end

subgraph group_computation["Core Computation"]
  node_minmax_dc["Divide-Conquer Min-Max<br/>[DAA5.py]"]
  node_minmax_native["Native Min-Max<br/>[DAA5.py]"]
  node_matrix_chain["Matrix-Chain DP<br/>[DAA6.py]"]
  node_optimal_parens["Parenthesization<br/>[DAA6.py]"]
  node_nqueens["N-Queens Solver<br/>[DAA7.py]"]
  node_safe_placement["Safe Placement<br/>[DAA7.py]"]
  node_board_display["Board Display<br/>[DAA7.py]"]
  node_partition["Quicksort Partition<br/>[DAA10.py]"]
  node_deterministic_quicksort["Deterministic Quicksort<br/>[DAA10.py]"]
  node_randomized_quicksort["Randomized Quicksort<br/>[DAA10.py]"]
  node_sort_test["Sort Benchmark Runner<br/>[DAA10.py]"]
end

node_kmp -->|"builds table"| node_lps
node_kruskal -->|"tests unions"| node_union_find
node_dijkstra --> node_path_reconstruction
node_first_fit_decreasing -->|"sorts then calls"| node_first_fit
node_nqueens -->|"checks placement"| node_safe_placement
node_nqueens --> node_board_display
node_deterministic_quicksort -->|"partitions"| node_partition
node_randomized_quicksort -->|"partitions"| node_partition
node_sort_test -->|"runs tests"| node_deterministic_quicksort
node_sort_test -->|"runs tests"| node_randomized_quicksort

click node_naive_search "https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py"
click node_kmp "https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py"
click node_lps "https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py"
click node_rabin_karp "https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py"
click node_interpolation "https://github.com/jeethesh022/daa_lab/blob/main/interpolation.py"
click node_binary_search "https://github.com/jeethesh022/daa_lab/blob/main/interpolation.py"
click node_kruskal "https://github.com/jeethesh022/daa_lab/blob/main/DAA3.py"
click node_union_find "https://github.com/jeethesh022/daa_lab/blob/main/DAA3.py"
click node_prim "https://github.com/jeethesh022/daa_lab/blob/main/DAA3.py"
click node_dijkstra "https://github.com/jeethesh022/daa_lab/blob/main/DAA4.py"
click node_path_reconstruction "https://github.com/jeethesh022/daa_lab/blob/main/DAA4.py"
click node_tsp_brute "https://github.com/jeethesh022/daa_lab/blob/main/DAA8.py"
click node_matrix_reduction "https://github.com/jeethesh022/daa_lab/blob/main/DAA8.py"
click node_first_fit "https://github.com/jeethesh022/daa_lab/blob/main/DAA9.py"
click node_first_fit_decreasing "https://github.com/jeethesh022/daa_lab/blob/main/DAA9.py"
click node_best_fit_decreasing "https://github.com/jeethesh022/daa_lab/blob/main/DAA9.py"
click node_minmax_dc "https://github.com/jeethesh022/daa_lab/blob/main/DAA5.py"
click node_minmax_native "https://github.com/jeethesh022/daa_lab/blob/main/DAA5.py"
click node_matrix_chain "https://github.com/jeethesh022/daa_lab/blob/main/DAA6.py"
click node_optimal_parens "https://github.com/jeethesh022/daa_lab/blob/main/DAA6.py"
click node_nqueens "https://github.com/jeethesh022/daa_lab/blob/main/DAA7.py"
click node_safe_placement "https://github.com/jeethesh022/daa_lab/blob/main/DAA7.py"
click node_board_display "https://github.com/jeethesh022/daa_lab/blob/main/DAA7.py"
click node_partition "https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py"
click node_deterministic_quicksort "https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py"
click node_randomized_quicksort "https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py"
click node_sort_test "https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_naive_search,node_kmp,node_lps,node_rabin_karp,node_interpolation,node_binary_search toneBlue
class node_kruskal,node_union_find,node_prim,node_dijkstra,node_path_reconstruction toneAmber
class node_tsp_brute,node_matrix_reduction,node_first_fit,node_first_fit_decreasing,node_best_fit_decreasing toneMint
class node_minmax_dc,node_minmax_native,node_matrix_chain,node_optimal_parens,node_nqueens,node_safe_placement,node_board_display,node_partition,node_deterministic_quicksort,node_randomized_quicksort,node_sort_test toneRose
```

## Components

### Searching

- [Naive Search](https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py): `DAA2.py`
- [KMP Search](https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py): `DAA2.py`
- [LPS Builder](https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py): `DAA2.py`
- [Rabin–Karp](https://github.com/jeethesh022/daa_lab/blob/main/DAA2.py): `DAA2.py`
- [Interpolation Search](https://github.com/jeethesh022/daa_lab/blob/main/interpolation.py): `interpolation.py`
- [Binary Search](https://github.com/jeethesh022/daa_lab/blob/main/interpolation.py): `interpolation.py`

### Graph Algorithms

- [Kruskal MST](https://github.com/jeethesh022/daa_lab/blob/main/DAA3.py): `DAA3.py`
- [Union-Find](https://github.com/jeethesh022/daa_lab/blob/main/DAA3.py): `DAA3.py`
- [Prim MST](https://github.com/jeethesh022/daa_lab/blob/main/DAA3.py): `DAA3.py`
- [Dijkstra](https://github.com/jeethesh022/daa_lab/blob/main/DAA4.py): `DAA4.py`
- [Path Reconstruction](https://github.com/jeethesh022/daa_lab/blob/main/DAA4.py): `DAA4.py`

### Optimization

- [TSP Brute Force](https://github.com/jeethesh022/daa_lab/blob/main/DAA8.py): `DAA8.py`
- [Matrix Reduction](https://github.com/jeethesh022/daa_lab/blob/main/DAA8.py): `DAA8.py`
- [First Fit](https://github.com/jeethesh022/daa_lab/blob/main/DAA9.py): `DAA9.py`
- [First Fit Decreasing](https://github.com/jeethesh022/daa_lab/blob/main/DAA9.py): `DAA9.py`
- [Best Fit Decreasing](https://github.com/jeethesh022/daa_lab/blob/main/DAA9.py): `DAA9.py`

### Core Computation

- [Divide-Conquer Min-Max](https://github.com/jeethesh022/daa_lab/blob/main/DAA5.py): `DAA5.py`
- [Native Min-Max](https://github.com/jeethesh022/daa_lab/blob/main/DAA5.py): `DAA5.py`
- [Matrix-Chain DP](https://github.com/jeethesh022/daa_lab/blob/main/DAA6.py): `DAA6.py`
- [Parenthesization](https://github.com/jeethesh022/daa_lab/blob/main/DAA6.py): `DAA6.py`
- [N-Queens Solver](https://github.com/jeethesh022/daa_lab/blob/main/DAA7.py): `DAA7.py`
- [Safe Placement](https://github.com/jeethesh022/daa_lab/blob/main/DAA7.py): `DAA7.py`
- [Board Display](https://github.com/jeethesh022/daa_lab/blob/main/DAA7.py): `DAA7.py`
- [Quicksort Partition](https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py): `DAA10.py`
- [Deterministic Quicksort](https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py): `DAA10.py`
- [Randomized Quicksort](https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py): `DAA10.py`
- [Sort Benchmark Runner](https://github.com/jeethesh022/daa_lab/blob/main/DAA10.py): `DAA10.py`

## Connections

- KMP Search → LPS Builder: builds table (evidence: `DAA2.py`)
- Kruskal MST → Union-Find: tests unions (evidence: `DAA3.py`)
- Dijkstra → Path Reconstruction (evidence: `DAA4.py`)
- First Fit Decreasing → First Fit: sorts then calls (evidence: `DAA9.py`)
- N-Queens Solver → Safe Placement: checks placement (evidence: `DAA7.py`)
- N-Queens Solver → Board Display (evidence: `DAA7.py`)
- Deterministic Quicksort → Quicksort Partition: partitions (evidence: `DAA10.py`)
- Randomized Quicksort → Quicksort Partition: partitions (evidence: `DAA10.py`)
- Sort Benchmark Runner → Deterministic Quicksort: runs tests (evidence: `DAA10.py`)
- Sort Benchmark Runner → Randomized Quicksort: runs tests (evidence: `DAA10.py`)
