# reechathapaliya1221/sa-driven--exam-seat-assignment architecture

> Architecture diagram of the GitHub repository reechathapaliya1221/sa-driven--exam-seat-assignment, 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/reechathapaliya1221/sa-driven--exam-seat-assignment
- Repository: https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment

## Overview

This is a browser-based exam seat planner. Users provide student, room, teacher, invigilator, and schedule data, choose subjects and an optimization method, then generate seating and invigilator assignments and view or export the resulting plans and attendance sheets. The README documents five seating strategies and the key constraints. The implementation is concentrated in src/App.jsx; the excerpts show the React entry point and some optimization and staffing logic, but not every handler, so undocumented internal links are omitted.

Main entry points: [`src/App.jsx`](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx) (Planner app), [`src/main.jsx`](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/main.jsx) (React entry point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Planner interface"]
  node_app["Planner app<br/>[App.jsx]"]
  node_data_input["CSV data input<br/>[App.jsx]"]
  node_subject_selection["Subject selection<br/>[App.jsx]"]
  node_entry["React entry point<br/>[main.jsx]"]
end

subgraph group_seating["Seating optimization"]
  node_algorithm_choice["Algorithm choice<br/>[App.jsx]"]
  node_seating_optimization["Seating optimization<br/>[App.jsx]"]
  node_random["Random strategy<br/>[App.jsx]"]
  node_greedy["Greedy strategy<br/>[App.jsx]"]
  node_hill_climbing["Hill climbing<br/>[App.jsx]"]
  node_simulated_annealing["Simulated annealing<br/>[App.jsx]"]
  node_roll_order_sa["Roll-order SA<br/>[App.jsx]"]
end

subgraph group_staffing["Invigilator scheduling"]
  node_invigilator_assignment["Invigilator assignment<br/>[App.jsx]"]
  node_schedule_constraints["Duty constraints<br/>[App.jsx]"]
end

subgraph group_results["Plans and exports"]
  node_plan_view["Seating plan view<br/>[App.jsx]"]
  node_csv_export["CSV export<br/>[App.jsx]"]
  node_attendance_sheet["Attendance sheets<br/>[App.jsx]"]
end

node_user(("Planner user"))

node_user -->|"uploads data"| node_data_input
node_user -->|"selects subjects"| node_subject_selection
node_user -->|"chooses method"| node_algorithm_choice
node_entry -->|"renders"| node_app
node_user -->|"uses planner"| node_app
node_app -->|"runs optimization"| node_seating_optimization
node_algorithm_choice -->|"selects strategy"| node_seating_optimization
node_seating_optimization -->|"compares"| node_random
node_seating_optimization -->|"compares"| node_greedy
node_seating_optimization -->|"compares"| node_hill_climbing
node_seating_optimization -->|"compares"| node_simulated_annealing
node_seating_optimization -->|"compares"| node_roll_order_sa
node_app -->|"assigns staff"| node_invigilator_assignment
node_invigilator_assignment -->|"checks limits"| node_schedule_constraints
node_app -->|"displays plans"| node_plan_view
node_app -->|"exports plans"| node_csv_export
node_app -->|"provides sheets"| node_attendance_sheet

click node_app "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_data_input "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_subject_selection "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_algorithm_choice "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_seating_optimization "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_random "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_greedy "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_hill_climbing "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_simulated_annealing "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_roll_order_sa "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_invigilator_assignment "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_schedule_constraints "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_plan_view "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_csv_export "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_attendance_sheet "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx"
click node_entry "https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/main.jsx"

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_app,node_data_input,node_subject_selection,node_entry,node_user toneBlue
class node_algorithm_choice,node_seating_optimization,node_random,node_greedy,node_hill_climbing,node_simulated_annealing,node_roll_order_sa toneAmber
class node_invigilator_assignment,node_schedule_constraints toneMint
class node_plan_view,node_csv_export,node_attendance_sheet toneRose
```

## Components

### Planner interface

- [Planner app](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [CSV data input](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Subject selection](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [React entry point](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/main.jsx): `src/main.jsx`

### Seating optimization

- [Algorithm choice](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Seating optimization](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Random strategy](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Greedy strategy](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Hill climbing](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Simulated annealing](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Roll-order SA](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`

### Invigilator scheduling

- [Invigilator assignment](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Duty constraints](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`

### Plans and exports

- [Seating plan view](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [CSV export](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`
- [Attendance sheets](https://github.com/reechathapaliya1221/sa-driven--exam-seat-assignment/blob/main/src/App.jsx): `src/App.jsx`

### Other components

- **Planner user**

## Connections

- Planner user → CSV data input: uploads data (evidence: `src/App.jsx`)
- Planner user → Subject selection: selects subjects (evidence: `src/App.jsx`)
- Planner user → Algorithm choice: chooses method (evidence: `README.md`)
- React entry point → Planner app: renders (evidence: `src/main.jsx`)
- Planner user → Planner app: uses planner (evidence: `README.md`)
- Planner app → Seating optimization: runs optimization (evidence: `src/App.jsx`)
- Algorithm choice → Seating optimization: selects strategy (evidence: `README.md`)
- Seating optimization → Random strategy: compares (evidence: `README.md`)
- Seating optimization → Greedy strategy: compares (evidence: `README.md`)
- Seating optimization → Hill climbing: compares (evidence: `README.md`)
- Seating optimization → Simulated annealing: compares (evidence: `README.md`)
- Seating optimization → Roll-order SA: compares (evidence: `README.md`)
- Planner app → Invigilator assignment: assigns staff (evidence: `README.md`)
- Invigilator assignment → Duty constraints: checks limits (evidence: `README.md`)
- Planner app → Seating plan view: displays plans (evidence: `src/App.jsx`)
- Planner app → CSV export: exports plans (evidence: `README.md`)
- Planner app → Attendance sheets: provides sheets (evidence: `src/App.jsx`)
