Skip to content

MalvinaPap/dmst-Algorithms-and-Data-Structures-Assignments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DMST-Algorithms-and-Data-Structures-Assignments (Python)

The Algorithms in this repository are implemented in Python programming language and where written in the context of the course ‘Algorithms-and-Data-Structures’ in Athens University of Economics and Business, department of Management Science and Technology.

Assignment No.1: Tournament planning

You can find the assignment here. In this program we must schedule the tournament so that each competitor has only one match each day. The problem is also described as the edge 'colouring problem'. The program reads a file from cmd like this: python plan_matches.py graph_file

  • graph_file is in the form:
a b
a c
b c
c d
d e
e c
...

Assignment No.2: Findings groups

You can find the assignment here. The program reads a file from cmd like this: python community_structure.py [-n GROUPS ] graph_file and detects community structure in networks.

  • graph_file is in the form:
1 3
1 10
2 3
4 10
...
  • The GROUPS is the number of the teams we want to create. If we don't write any number then it's 2 teams, by default.

More information:

  • The algorithm that we use at the exercise was added by M. E. J. Newman at the article "Fast algorithm for detecting community structure in networks", Phys. Rev. E 69, 066133, 2004. You can find it here.

Assignment No.3: Steiner system (Steiner Triple Systems)

You can find the assignment here. The program reads a file from cmd like this: python sts.py n and creates a list with all blocks sorted, and their number.

More information:

About

Algorithms implemented in Python for the 'Algorithms and Data Structures' course in DMST

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages