This is my project for Algorithm Analysis class. The aim of this project is finding distance between artists using graph and hash data structures in C language.
- Make a graph data structure which include artists and movies.
- Find distance between an artist and Kevin Bacon. This number will be Bacon number.
- Find distance between two artist which user selected.
- Show connections of an artist or movie.
In this image movie names showed as string for clarity. In real data structure, array consists of artists and movies names. Their address of in array is their generated hash number with Double Hashing Method. Connections of movies or artists kept in linked list. Connected elements specified with their integer hash numbers not with their names.
This output shows connection between Kevin Bacon and Qi Shu. Bacon number is 3.