0

I have the database movies (movie_id INT, actor VARCHAR(80)) and i want to answer to this question
’Six degrees of separation’: Given two actor names, determine their ’degree of separation’, defined as 1 follows: Two actors ’A’ and ’B’ are 1-degree away if they played in at least one movie together; they are 2-degrees away if there exists an actor ’C’ who is 1-degree away from each of ’A’ and ’B’; and so on.
Do you have any idea how i can do this ?
Thank you

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by smantscheff
0

This is rather annoying. I believe that a forum like this one are meant to help people share their knowledge and help each other, in real questions, and not high school (or elementary) exercises.

0

If this is an elementary exercise, what is the solution? And why do you mind helping them with their homework if you don't mind helping them with their work?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.