Problem
Make registering system, develop a system to help a department in a university to identify if there are any such courses that the course registering system will not allow students to register. if there is a cycle of prerequisite courses then students cannot register some of the courses at all. (that will be implement it as a websit (HTML & JS languages). Make a plan for or 4 years, assuming that there are two semesters in each year and in 4 years a student will take all the courses. I make this plan as a tree with multiple verteces.
The question is How can write algorithm for that? What the mathimatical models can use? How can implement it using HTML & JS languages?