• Is it considered cheating?


Let's suppose you have a task where you think you could solve it using Graph Theory. At that point you realize that there is an algorithm which can help you within the process (like Djikstra etc). Is it fair to copy the algorithm on Google and then change what you need to change(in your program) in order to use it in your program?