Further Maths, D1 - Dijkstra's Algorithm

  • Context: Undergrad 
  • Thread starter Thread starter I-need-help
  • Start date Start date
  • Tags Tags
    Algorithm
Click For Summary

Discussion Overview

The discussion centers around the application of Dijkstra's Algorithm, specifically regarding its computational order and how improvements in computer speed affect problem size solvable within a given time frame. The context is related to Further Maths, Decision 1 (OCR) coursework.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant states they understand Dijkstra's Algorithm but struggles with questions related to its order, specifically noting it is quadratic (n²).
  • Another participant explains that if the order is n², the problem can be solved in Cn² steps, introducing a relationship between time, speed, and problem size.
  • A participant expresses gratitude for the clarification provided regarding the algorithm's order and its implications.
  • Some participants question whether knowledge of the algorithm's order is necessary for the D1 exam, with one noting that past papers do not seem to include such questions but cautioning that related topics may appear unexpectedly.

Areas of Agreement / Disagreement

There is no consensus on whether knowledge of the algorithm's order is required for the exam, as some participants express uncertainty about its relevance based on past papers.

Contextual Notes

Participants mention the need for assumptions regarding the speed of computers and the relationship between time and problem size, which may not be fully explored in the discussion.

Who May Find This Useful

Students preparing for Further Maths, Decision 1 (OCR) exams, particularly those interested in algorithm efficiency and computational limits.

I-need-help
Messages
15
Reaction score
0
Hi, I can do Dijkstra's Algorithm alright, but I always have problems with questions which have some relevance to the "Order of the Algorithm".

For example, in the Further Maths, Decision 1 (OCR) textbook:

8) Suppose you purchase a new computer which is 100 times as fast as your old one. What gain in problem size per hour would you achieve in the use of Dijkstra's Algorithm? Show all necessary working.

I know that the order of Dijkstra's is n2 - a quadratic- and that you could use the relationship of: t α n2

Please help me!

Thank You :)
 
Physics news on Phys.org
If the order of the algorithm is n^2, this means there's a constant C, such that the problem can be solved in Cn^2 steps.

Suppose that you're willing to wait a time T for the answer. The speed of your old computer is v of those steps each second, so it can do vT steps in time T, and you can do problem sizes n, such that cn^2 < vT. This means that n has to be smaller than .....

Now your new computer has speed 100v, so you can just replace v by 100 v in the condition for n you calculated before
 
@willem2 Thank you for the reply! That makes so much sense to me now. Thanks
 
Do we have to know that for the D1 exam (just because I'm taking it and I didn't really expect that)?
 
dalcde said:
Do we have to know that for the D1 exam (just because I'm taking it and I didn't really expect that)?

Hmmm, after looking at several past papers, it doesn't seem as if they would ask you anything like that. But be careful anyway, they do randomly throw related things in there.
 

Similar threads

Replies
22
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
Replies
4
Views
3K
Replies
41
Views
9K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K