# kovacsgg/ipgyak4 architecture

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

- Interactive diagram: https://gitdiagram.com/kovacsgg/ipgyak4
- Repository: https://github.com/kovacsgg/ipgyak4

## Overview

This repository is a collection of C exercises and worked examples for an imperative-programming course, not one integrated application. The typical learner workflow is to study a standalone exercise, run its program, and observe printed or file-based results; the README describes course assessment rather than runtime features. The graph groups exercises by topic and highlights the sampled reusable matrix/vector code. Source excerpts show the matrix demo calling its implementation and the word-count exercise using a character vector; other exercise relationships are not inferred.

Main entry points: [`gyak11/wc.c`](https://github.com/kovacsgg/ipgyak4/blob/main/gyak11/wc.c) (Word counting), [`gyak10/main.c`](https://github.com/kovacsgg/ipgyak4/blob/main/gyak10/main.c) (Matrix demo), [`gyak01`](https://github.com/kovacsgg/ipgyak4/tree/main/gyak01) (Introductory programs), [`gyak02`](https://github.com/kovacsgg/ipgyak4/tree/main/gyak02) (Variables and functions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["C foundations"]
  node_intro["Introductory programs"]
  node_variables["Variables and functions"]
  node_control["Control flow and input"]
  node_pointers["Geometry and pointers"]
  node_scope["Scope and functions"]
end

subgraph group_algorithms["Algorithms and exercises"]
  node_calculator["Calculator and statistics"]
  node_arrays["Arrays and sequences"]
  node_multidim["Powers and matrices"]
  node_wordcount["Word counting<br/>[wc.c]"]
end

subgraph group_data["Reusable data structures"]
  node_matrixdemo["Matrix demo<br/>[main.c]"]
  node_matrix["Matrix operations<br/>[matrix.c]"]
  node_genericvector["Generic vector<br/>[vector.c]"]
  node_charvector["Character vector<br/>[char_vector.c]"]
end

node_learner(("Learner"))
node_inputfile["Input file"]
node_stdout(("Standard output"))

node_learner -.->|"studies examples"| node_intro
node_learner -.->|"studies examples"| node_variables
node_learner -.->|"studies examples"| node_control
node_learner -.->|"studies examples"| node_calculator
node_learner -.->|"studies examples"| node_arrays
node_learner -.->|"studies examples"| node_pointers
node_learner -.->|"studies examples"| node_multidim
node_learner -.->|"studies examples"| node_scope
node_matrixdemo -->|"calls operations"| node_matrix
node_matrixdemo -->|"prints matrix"| node_stdout
node_wordcount -->|"uses vector"| node_charvector
node_wordcount -->|"reads words"| node_inputfile
node_wordcount -->|"prints counts"| node_stdout

click node_intro "https://github.com/kovacsgg/ipgyak4/tree/main/gyak01"
click node_variables "https://github.com/kovacsgg/ipgyak4/tree/main/gyak02"
click node_control "https://github.com/kovacsgg/ipgyak4/tree/main/gyak03"
click node_calculator "https://github.com/kovacsgg/ipgyak4/tree/main/gyak04"
click node_arrays "https://github.com/kovacsgg/ipgyak4/tree/main/gyak05"
click node_pointers "https://github.com/kovacsgg/ipgyak4/tree/main/gyak06"
click node_multidim "https://github.com/kovacsgg/ipgyak4/tree/main/gyak07"
click node_scope "https://github.com/kovacsgg/ipgyak4/tree/main/gyak09"
click node_matrixdemo "https://github.com/kovacsgg/ipgyak4/blob/main/gyak10/main.c"
click node_matrix "https://github.com/kovacsgg/ipgyak4/blob/main/gyak10/matrix.c"
click node_genericvector "https://github.com/kovacsgg/ipgyak4/blob/main/gyak11/vector.c"
click node_charvector "https://github.com/kovacsgg/ipgyak4/blob/main/gyak11/char_vector.c"
click node_wordcount "https://github.com/kovacsgg/ipgyak4/blob/main/gyak11/wc.c"

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_intro,node_variables,node_control,node_pointers,node_scope toneBlue
class node_calculator,node_arrays,node_multidim,node_wordcount toneAmber
class node_matrixdemo,node_matrix,node_genericvector,node_charvector toneMint
class node_learner,node_inputfile,node_stdout toneIndigo
```

## Components

### C foundations

- [Introductory programs](https://github.com/kovacsgg/ipgyak4/tree/main/gyak01): `gyak01`
- [Variables and functions](https://github.com/kovacsgg/ipgyak4/tree/main/gyak02): `gyak02`
- [Control flow and input](https://github.com/kovacsgg/ipgyak4/tree/main/gyak03): `gyak03`
- [Geometry and pointers](https://github.com/kovacsgg/ipgyak4/tree/main/gyak06): `gyak06`
- [Scope and functions](https://github.com/kovacsgg/ipgyak4/tree/main/gyak09): `gyak09`

### Algorithms and exercises

- [Calculator and statistics](https://github.com/kovacsgg/ipgyak4/tree/main/gyak04): `gyak04`
- [Arrays and sequences](https://github.com/kovacsgg/ipgyak4/tree/main/gyak05): `gyak05`
- [Powers and matrices](https://github.com/kovacsgg/ipgyak4/tree/main/gyak07): `gyak07`
- [Word counting](https://github.com/kovacsgg/ipgyak4/blob/main/gyak11/wc.c): `gyak11/wc.c`

### Reusable data structures

- [Matrix demo](https://github.com/kovacsgg/ipgyak4/blob/main/gyak10/main.c): `gyak10/main.c`
- [Matrix operations](https://github.com/kovacsgg/ipgyak4/blob/main/gyak10/matrix.c): `gyak10/matrix.c`
- [Generic vector](https://github.com/kovacsgg/ipgyak4/blob/main/gyak11/vector.c): `gyak11/vector.c`
- [Character vector](https://github.com/kovacsgg/ipgyak4/blob/main/gyak11/char_vector.c): `gyak11/char_vector.c`

### Other components

- **Learner**
- **Input file**
- **Standard output**

## Connections

- Learner → Introductory programs: studies examples
- Learner → Variables and functions: studies examples
- Learner → Control flow and input: studies examples
- Learner → Calculator and statistics: studies examples
- Learner → Arrays and sequences: studies examples
- Learner → Geometry and pointers: studies examples
- Learner → Powers and matrices: studies examples
- Learner → Scope and functions: studies examples
- Matrix demo → Matrix operations: calls operations (evidence: `gyak10/main.c`)
- Matrix demo → Standard output: prints matrix (evidence: `gyak10/main.c`)
- Word counting → Character vector: uses vector (evidence: `gyak11/wc.c`)
- Word counting → Input file: reads words (evidence: `gyak11/wc.c`)
- Word counting → Standard output: prints counts (evidence: `gyak11/wc.c`)
