Nicolas Von Dolinger

Data Structures

2023 · C++ · Python · Streamlit

Data Structures app showing a satisfiable boolean formula

Overview

The three practical works I wrote in C++ for the Data Structures course at UFMG in 2023, now open in the browser. Each page explains the problem and shows the command that ran, the input and the program's real output.

What I built

  • TP 01, boolean formulas: evaluates a formula with two stacks and decides satisfiability with quantifiers, using a binary tree that enumerates the assignments.
  • TP 02, greedy coloring: checks whether a graph coloring is greedy and orders the vertices by color with one of seven sorting algorithms, chosen at run time.
  • TP 03, segment tree: each node stores the product of the 2x2 matrices in its interval, so updates and queries cost O(log n).
  • Streamlit app: compiles the programs with make and runs each execution in a temporary folder, with a 10-second limit.

Beyond the practical works

The repository also has the course's 11 activities, from a matrix ADT to an AVL tree, each with a README in English and Portuguese.

TP 02: greedy coloring check
TP 02: greedy coloring check
TP 03: segment tree queries
TP 03: segment tree queries
Next projectSearch Machine