# gnanendra942/problem-solving-and-testing-s2-2 architecture

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

- Interactive diagram: https://gitdiagram.com/gnanendra942/problem-solving-and-testing-s2-2
- Repository: https://github.com/gnanendra942/problem-solving-and-testing-s2-2

## Overview

This is a Java catalog of independent algorithm exercises and six applied systems, not a single application with a shared runtime pipeline. Its user-to-result pattern is to provide input to an exercise or lab, run that standalone program, and receive a computed result. The curriculum covers weekly algorithm and data-structure topics; the labs demonstrate stream processing, analytics, optimization, DNA search, banking, and ride-sharing. Weekly group paths identify enclosing directories; lab and ride-sharing details come from the shown Task6 source. Other links are omitted where no caller relationship was shown.

Main entry points: [`Lab Tasks/06-RideSharing-Platform-Simulator/Task6.java`](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/06-RideSharing-Platform-Simulator/Task6.java) (Ride Booking CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_curriculum["Algorithm Curriculum"]
  node_week1["Arrays And Lambdas"]
  node_week2["Array Algorithms"]
  node_week3["Collections And Scheduling"]
  node_week4["Matrices And Strings"]
  node_week5["Windows And Dynamic Programming"]
  node_week6["String Algorithms"]
  node_week7["Design And Data Structures"]
end

subgraph group_labs["Applied Labs"]
  node_salary["Salary Transformation<br/>[Task1.java]"]
  node_analytics["Stream Analytics<br/>[Task2.java]"]
  node_profit["Profit Analysis<br/>[Task3.java]"]
  node_dna["DNA Pattern Search<br/>[Task4.java]"]
  node_banking["Banking State System<br/>[Task5.java]"]
end

subgraph group_ride["Ride Sharing"]
  node_ridecli["Ride Booking CLI<br/>[Task6.java]"]
  node_trip["Trip Validation<br/>[Task6.java]"]
  node_fare["Vehicle Fare Rules<br/>[Task6.java]"]
end

node_user(("Problem Solver"))
node_output(("Computed Output"))

node_user -->|"enters bookings"| node_ridecli
node_ridecli -->|"creates trip"| node_trip
node_trip -->|"calculates fare"| node_fare
node_ridecli -->|"prints result"| node_output

click node_week1 "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-1"
click node_week2 "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-2"
click node_week3 "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-3"
click node_week4 "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-4"
click node_week5 "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-5"
click node_week6 "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-6"
click node_week7 "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-7"
click node_salary "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/01-Salary-Transformation-System/Task1.java"
click node_analytics "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/02-RealTime-Stream-Analytics-Engine/Task2.java"
click node_profit "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/03-Maximum-Profit-Analyzer-Kadane/Task3.java"
click node_dna "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/04-DNA-Pattern-Search-KMP/Task4.java"
click node_banking "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/05-Banking-Transaction-System-OOP/Task5.java"
click node_ridecli "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/06-RideSharing-Platform-Simulator/Task6.java"
click node_trip "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/06-RideSharing-Platform-Simulator/Task6.java"
click node_fare "https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/06-RideSharing-Platform-Simulator/Task6.java"

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_week1,node_week2,node_week3,node_week4,node_week5,node_week6,node_week7 toneBlue
class node_salary,node_analytics,node_profit,node_dna,node_banking toneAmber
class node_ridecli,node_trip,node_fare toneMint
class node_user,node_output toneIndigo
```

## Components

### Algorithm Curriculum

- [Arrays And Lambdas](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-1): `Week-1`
- [Array Algorithms](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-2): `Week-2`
- [Collections And Scheduling](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-3): `Week-3`
- [Matrices And Strings](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-4): `Week-4`
- [Windows And Dynamic Programming](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-5): `Week-5`
- [String Algorithms](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-6): `Week-6`
- [Design And Data Structures](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/tree/main/Week-7): `Week-7`

### Applied Labs

- [Salary Transformation](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/01-Salary-Transformation-System/Task1.java): `Lab Tasks/01-Salary-Transformation-System/Task1.java`
- [Stream Analytics](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/02-RealTime-Stream-Analytics-Engine/Task2.java): `Lab Tasks/02-RealTime-Stream-Analytics-Engine/Task2.java`
- [Profit Analysis](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/03-Maximum-Profit-Analyzer-Kadane/Task3.java): `Lab Tasks/03-Maximum-Profit-Analyzer-Kadane/Task3.java`
- [DNA Pattern Search](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/04-DNA-Pattern-Search-KMP/Task4.java): `Lab Tasks/04-DNA-Pattern-Search-KMP/Task4.java`
- [Banking State System](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/05-Banking-Transaction-System-OOP/Task5.java): `Lab Tasks/05-Banking-Transaction-System-OOP/Task5.java`

### Ride Sharing

- [Ride Booking CLI](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/06-RideSharing-Platform-Simulator/Task6.java): `Lab Tasks/06-RideSharing-Platform-Simulator/Task6.java`
- [Trip Validation](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/06-RideSharing-Platform-Simulator/Task6.java): `Lab Tasks/06-RideSharing-Platform-Simulator/Task6.java`
- [Vehicle Fare Rules](https://github.com/gnanendra942/problem-solving-and-testing-s2-2/blob/main/Lab%20Tasks/06-RideSharing-Platform-Simulator/Task6.java): `Lab Tasks/06-RideSharing-Platform-Simulator/Task6.java`

### Other components

- **Problem Solver**
- **Computed Output**

## Connections

- Problem Solver → Ride Booking CLI: enters bookings (evidence: `Lab Tasks/06-RideSharing-Platform-Simulator/Task6.java`)
- Ride Booking CLI → Trip Validation: creates trip (evidence: `Lab Tasks/06-RideSharing-Platform-Simulator/Task6.java`)
- Trip Validation → Vehicle Fare Rules: calculates fare (evidence: `Lab Tasks/06-RideSharing-Platform-Simulator/Task6.java`)
- Ride Booking CLI → Computed Output: prints result (evidence: `Lab Tasks/06-RideSharing-Platform-Simulator/Task6.java`)
