Skip to content

momcilovicluka/spa3-vezbe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏫 SPA3 Exercises GitHub Repo stars GitHub last commit GitHub repo size

This repository contains solutions and exercises for the SPA3 course, focused on Graphs and Trees.

The exercises include implementation of various graph algorithms such as bipartite graph checks, DFS, BFS, cycle detection, topological sorting, and more.

πŸ“š Course Exercises

  • Vezbe 1
    • Undirected graph implementation 🟒
    • Loading graph from file πŸ“‚
    • Find component starting from some vertex πŸ”
    • Find all components and print them 🌐
    • Find path between 2 vertecies πŸ”—
    • Print distance from one vertex to all other πŸ“
    • Check if graph has cycles πŸ”„
  • Vezbe 2
    • Check if undirected graph is bipartite πŸ”΅πŸŸ£
    • Count number of components in directed graph πŸ“Š
    • Print all components 🧩
    • Check if cycle exists in graph and print one πŸ”„
    • Topological sort if there is no cycle πŸ”„

πŸ› οΈ Technologies Used

  • Java: Core language for implementing graph algorithms.
  • Princeton's Graph Library algs4j: For directed graph representation and operations (Used in exercise 2 and forward).

πŸš€ Getting Started

Clone the repository

To get started, clone this repository to your local machine:

  • With git:
git clone https://github.com/momcilovicluka/spa3-vezbe.git

or

  • With GitHub cli (superior way btw):
gh repo clone momcilovicluka/spa3-vezbe

After that, just open exercises in your editor of choice (i use neovim btw (i don't i just say because funny)) and make sure you also downloaded example graphs files and algs4j library

🀝 Contributing

Feel free to fork this repo and submit pull requests with improvements, bug fixes, or additional exercises. Contributions are always welcome!

About

Exercises for SPA3 - Graphs and Trees

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages