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