Lecture notes, interactive slide decks, and academic resources prepared for undergraduate and graduate computer science courses.

🎨 Computer Graphics ⚡ Analysis of Algorithms 🌐 Systems Architecture

🎨 Computer Graphics

Undergraduate • UNICAP

Fundamental principles of 2D and 3D computer graphics, vector representations, homogeneous transformation matrices, projections, rasterization, and real-time graphics pipelines.

Interactive Lecture Reveal.js + Canvas

2D Geometric Transformations (Part 1)

Mathematical formulation, 3x3 homogeneous coordinate matrices, and interactive dynamic simulations of translation, scaling, rotation, and shearing with live Canvas manipulation.

Interactive Lecture Reveal.js + Warsaw Beamer KaTeX + Simulators

2D Geometric Transformations (Part 2)

Inverse transformations, composite transformations (matrix order & non-commutativity), fixed-point rotation & scaling, reflections, shearing, and interactive sandbox playground.

Interactive Lecture Reveal.js + Warsaw Beamer KaTeX + Canvas & WebGL

2D Geometric Transformations (Part 3)

Transformations between 2D coordinate systems (change of basis), Method 1 (rotation angle $\theta$), Method 2 (orthonormal basis without angles), transformations in HTML5 Canvas, execution order, and pipeline integration with WebGL & Three.js.

Slide Presentation Slide Viewer + Warsaw Beamer 3D Homogeneous Coordinates

3D Geometric Transformations (Part 1)

Transition from 2D to 3D spaces, 4D homogeneous coordinates & $4 \times 4$ matrices, 3D translation vectors, uniform/non-uniform scaling, right-hand Cartesian coordinate system, and principal axis rotations ($R_x, R_y, R_z$) with geometric derivation.

Slide Presentation Slide Viewer + Warsaw Beamer Arbitrary Axis & 3D Composition

3D Geometric Transformations (Part 2)

Rotation about parallel and arbitrary axes via matrix decomposition ($T \cdot R \cdot T^{-1}$ and coordinate alignment), 3D transformation composition order, 3D reflection across coordinate planes, and 3D shearing.

Slide Presentation Slide Viewer + Warsaw Beamer Three.js & Hierarchy Practice + Theory

3D Geometric Transformations (Part 3)

Programming 3D transformations with Three.js, core scene graph pillars (Scene, Camera, WebGLRenderer, Mesh), transformation hierarchies and scoping using THREE.Group, 3D coordinate frame transformations, and introduction to the Rubik's Cube project.

Course Project Three.js + WebGL Split-View Playground

🎲 Project: Rubik's Cube 3D Simulation (Cubo Mágico)

Interactive 3D Rubik's Cube simulation project in Three.js with face rotation animations ($90^\circ$) and hierarchical groups. Includes a Split-View Playground (half code with syntax highlighting, half live compiled WebGL execution) for preparatory examples (rotation, groups/scope, hierarchical solar system) and the evaluation sheet.

Theory + Practice Three.js Editor Generative AI & 3D

🤖 CG in the Era of Generative AI

Closing lecture: a high-level map of diffusion models, ControlNet, NeRF & Gaussian Splatting, image-to-3D, DLSS and world models — and where the graphics pipeline fits in each. Lab: open AI-generated 3D models (Hunyuan3D-2) in the Three.js Editor and inspect them with the semester's concepts — triangle meshes, transformations ($M = T \cdot R \cdot S$), perspective vs. orthographic cameras and the view window — then compare them with a Gaussian Splatting scene in the browser.

⚡ Analysis of Algorithms

Undergraduate • UNICAP

Asymptotic time and space complexity analysis, Big-O / Big-Omega / Big-Theta notation, recurrence relations (Master Theorem), algorithmic design paradigms (divide-and-conquer, greedy methods, dynamic programming), and graph algorithms.

Interactive Lecture Reveal.js + Warsaw Beamer KaTeX + Simulators

Lecture 5: Complexity of Iterative Algorithms (Part 2)

3-step complexity calculation method, quadratic sorting analysis (Selection Sort & optimized Bubble Sort with triangular sums), best/worst/average cases (Linear Search), $O(n \cdot m)$ nested loops, $O(\sqrt{n})$ primality testing, Two Pointers technique, and 10 solved exercises with interactive live step simulators.

Interactive Lecture Reveal.js + Warsaw Beamer KaTeX + Simulators

Lecture 6: Complexity of Algorithms & Data Structures

Impact of data structures on computational complexity: contiguous vs. linked memory, dynamic array resizing & amortized analysis, stacks & circular queues ($O(1)$ operations), binary search trees (BST), binary heaps & priority queues, hash tables (collisions, open addressing, rehashing), and comparative complexity trade-offs with solved exercises.

Slide Presentation PDF Slide Viewer Recurrences & Master Theorem

Lecture 6.b: Complexity of Recursive Algorithms

From iterative limits to recursive functions, modeling recurrence relations ($T(n) = aT(n/b) + f(n)$), building and analyzing recursion trees (Factorial, Merge Sort, Binary Search), and mastering the Master Theorem (intuition of the 3 cases, root vs. leaves battle, and applicability rules).

Slide Presentation PDF Slide Viewer P Class & Polynomial Time 📊 Gráfico Interativo (Slide 16)

Lecture 7: Introduction to P Problems

Complexity of computational problems vs. algorithms, definition of the P complexity class, polynomial time vs. super-polynomial/exponential growth, tractability (Cobham's thesis), decision vs. optimization problems, input encoding, and classic problems in P with solved exercises. Inclui simulador gráfico interativo do Slide 16 (2ⁿ vs n³ e n²).

Slide Presentation PDF Slide Viewer NP Class & Verification P vs NP & NP-Completeness

Lecture 8: Introduction to NP Problems

Solving vs. verifying, polynomial certificates and witnesses, formal definition of the NP complexity class, relation $P \subseteq NP$, the P vs NP millennium problem and its cryptographic/computational implications, canonical problems in NP (SAT, Hamiltonian Path, TSP, Subset-Sum, Clique, Vertex Cover), solved exercises, and an introduction to NP-completeness and polynomial reductions.

Slide Presentation PDF Slide Viewer Decidability Halting Problem

Lecture 9: Decidability

Problems that no algorithm can solve: decidable vs. undecidable problems, the Halting Problem (HALT) and why simulating a program is not enough, a step-by-step proof of its undecidability (barber paradox, self-reference and the diagonal table), other undecidable problems (Acceptance, Post Correspondence, Program Equivalence), reductions for proving undecidability, and the complete hierarchy $P \subseteq NP \subseteq$ Decidable.

Exercise List PDF 2nd Exam (2GQ)

Exercise List: 2nd Exam (2GQ)

Review exercises for the 2nd exam covering classes $P$ and $NP$, certificates and verifiers, polynomial reductions, NP-completeness and decidability: true/false items with justification, proofs of membership in NP, reductions, ENADE/POSCOMP-style questions and a discursive question.

🌐 Systems Architecture

Undergraduate • UNICAP

Architectural models for distributed systems, structured and flat naming, Distributed Hash Tables (DHTs), Domain Name System (DNS), clock synchronization, distributed election algorithms, and microservices fundamentals.

Interactive Lecture Reveal.js + Warsaw Beamer Live DNS Simulators

Lecture 4.3: Structured Naming & Domain Name System (DNS)

From identifiers to structured hierarchical naming, reverse FQDN resolution, DNS namespace layers (Global, Administrational, Managerial), authoritative comparative analysis, iterative vs. recursive name resolution trade-offs, and multi-tier DNS caching with interactive live Canvas simulators.

Slide Presentation PDF Slide Viewer Microservices & Middleware

Lecture 7: Distributed Systems & Microservices Architecture

Fundamental principles of distributed systems, design goals (resource sharing, distribution transparency, openness, scalability), the 8 fallacies of distributed computing, the role of middleware, layered architectures (2-tier, 3-tier, N-tier), architectural comparison: Monolith vs. SOA vs. Microservices, domain decomposition heuristics, synchronous vs. asynchronous communication trade-offs, and initial project guidelines for the 2nd GQ.

Slide Presentation PDF Slide Viewer Containers & Docker 📋 Projeto 2ª GQ

Lecture 8: Containers & Docker for Distributed Systems

Evolution from bare-metal to virtual machines and containers, Linux kernel isolation primitives (Namespaces, Cgroups, UnionFS/OverlayFS), Docker architecture and image layer caching, data persistence (Volumes vs. Bind Mounts), container networking and internal DNS, multi-service orchestration with Docker Compose, and official project specification for the 2nd GQ Distributed Middleware.