You are using a computer system that asks you questions rega…

You are using a computer system that asks you questions regarding the characteristics of the whale that you are currently viewing/seeing.  When you have answered a sufficient number of questions, the system identifies the whale that you are viewing/seeing. A ___________________ is the system being used.

A company relies on a set of suppliers, where some suppliers…

A company relies on a set of suppliers, where some suppliers must receive components from others before they can start production. In certain cases, a group of suppliers may depend on one another in a way that forms a closed loop, meaning none of them can begin production. Given the suppliers list \((S)\) and the list of dependency relationships \((R)\), describe or write an algorithm to determine whether such a closed loop exists in the supply chain. Your solution must run in \(O(|S|+|R|)\).