# thanhvien1407/bai-tap-cslt-buoi-6 architecture

> Architecture diagram of the GitHub repository thanhvien1407/bai-tap-cslt-buoi-6, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thanhvien1407/bai-tap-cslt-buoi-6
- Repository: https://github.com/thanhvien1407/bai-tap-cslt-buoi-6

## Overview

This is a small C# console exercise program, not a layered service: the user selects an exercise by uncommenting its call in Main, enters data, and receives printed results. The principal active workflow is the matrix exercise; array operations and sorting/searching are alternate workflows. Algorithm helpers and exercise handlers are all in one source file. The README documents the full capability set; excerpts are partial, so links to unsampled helper calls are omitted where ownership is unclear.

Main entry points: [`Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs) (Main)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Console entry"]
  node_main["Main"]
end

subgraph group_arrays["Array exercises"]
  node_array_task["Array exercise"]
  node_array_helpers["Array operations"]
end

subgraph group_basic["Basic algorithms"]
  node_algorithm_task["Sort and search"]
  node_sort_helper["Bubble sort"]
  node_search_helper["Linear search"]
end

subgraph group_matrices["Matrix exercises"]
  node_matrix_task["Matrix exercise"]
  node_matrix_helpers["Matrix operations"]
end

node_user(("Console user"))

node_user -->|"starts program"| node_main
node_main -.->|"selects exercise"| node_array_task
node_main -.->|"selects exercise"| node_algorithm_task
node_main -->|"calls"| node_matrix_task
node_array_task -->|"calls"| node_array_helpers
node_algorithm_task -->|"calls"| node_sort_helper
node_algorithm_task -->|"calls"| node_search_helper
node_matrix_task -->|"calls"| node_matrix_helpers

click node_main "https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs"
click node_array_task "https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs"
click node_array_helpers "https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs"
click node_algorithm_task "https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs"
click node_sort_helper "https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs"
click node_search_helper "https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs"
click node_matrix_task "https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs"
click node_matrix_helpers "https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs"

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_main,node_user toneBlue
class node_array_task,node_array_helpers toneAmber
class node_algorithm_task,node_sort_helper,node_search_helper toneMint
class node_matrix_task,node_matrix_helpers toneRose
```

## Components

### Console entry

- [Main](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs): `Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`

### Array exercises

- [Array exercise](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs): `Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`
- [Array operations](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs): `Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`

### Basic algorithms

- [Sort and search](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs): `Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`
- [Bubble sort](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs): `Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`
- [Linear search](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs): `Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`

### Matrix exercises

- [Matrix exercise](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs): `Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`
- [Matrix operations](https://github.com/thanhvien1407/bai-tap-cslt-buoi-6/blob/master/B%C3%A0i%20t%E1%BA%ADp%20-%20CSLT%20-%20Bu%E1%BB%95i%206/B%C3%A0i%20T%E1%BA%ADp%20-%20Bu%E1%BB%95i%206.cs): `Bài tập - CSLT - Buổi 6/Bài Tập - Buổi 6.cs`

### Other components

- **Console user**

## Connections

- Console user → Main: starts program
- Main → Array exercise: selects exercise
- Main → Sort and search: selects exercise
- Main → Matrix exercise: calls
- Array exercise → Array operations: calls
- Sort and search → Bubble sort: calls
- Sort and search → Linear search: calls
- Matrix exercise → Matrix operations: calls
