answersLogoWhite

0


Best Answer

The short answer is that goto statements generally cause messy and hard to read code. This reduces the ability to update that code. Also it was proven that nearly everything that goto was used for could be done using other control statements like the while loop or function calls.

for a more informative answer go here

http://www.cs.utexas.edu/~EWD/transcriptions/EWD02xx/EWD215.HTML

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why did Edsger Dijkstra find the goto statement to be harmful?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are some examples of how technology can be helpful and harmful to society?

technology helps us find information we can't find anywhere else. technology is harmful because our environment is being harmed by the oil being lost and humans using too many things we don't need.


How does Prim's algorithm differ from Kruskal's and Dijkstra's algorithms?

First a vertex is selected arbitrarily. on each iteration we expand the tree by simply attaching to it the nearest vertex not in the tree. the algorithm stops after all yhe graph vertices have been included.. one main criteria is the tree should not be cyclic.


What is the difference between dijkstra and kruskal's algorithm?

Both of these functions solve the single source shortest path problem. The primary difference in the function of the two algorithms is that Dijkstra's algorithm cannont handle negative edge weights. Bellman-Ford's algorithm can handle some edges with negative weight. It must be remembered, however, that if there is a negative cycle there is no shortest path.


What is the substitution of variables using the ohm's law?

Using the equation for the power dissipated by a resistor and Ohm's Law V=IR find the expression for power that involves only current and voltage. using the method of substitution of variables, find a solution to the problem statement above What are an alternative set of units that could also be used to express power.


What is the purpose of Internet banking system?

It enables people to look after some of their banking needs from a computer connected to the internet. They can do things like manage some transactions or view their bank statements. This means that they don't need to go to the bank when they want to do some things, or wait for their bank statement to be sent to find out what is happening in their account.

Related questions

When does Dijkstra's algorithm fail to find the shortest path in a graph?

Dijkstra's algorithm fails to find the shortest path in a graph when the graph has negative edge weights.


What is the Dijkstra's algorithm?

Dijkstra's algorithm has importance when you are trying to find the shortest path between two points. It's used in the computer networking field where routing protocols, like OSPF, uses it to find the shortest path between routers. http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm


What is the difference between Dijkstra's algorithm and Floyd's algorithm?

Dijkstra doesn't support negative weight-age, Floyd support negative edges but no negative cycles. Dijkstra running time is v2 and Floyd has v3.Dijkstra is fast compared to Floyd, because only find the shortest path for single node. FloydSlow as compared to Dijkstra.


What are the differences between Dijkstra's algorithm and Breadth-First Search (BFS) when it comes to finding the shortest path in a graph?

Dijkstra's algorithm and Breadth-First Search (BFS) are both used to find the shortest path in a graph, but they have key differences. Dijkstra's algorithm considers the weight of edges, making it suitable for graphs with weighted edges, while BFS treats all edges as having the same weight. Additionally, Dijkstra's algorithm guarantees the shortest path, but BFS may not always find the shortest path in weighted graphs.


What is the relationship between Dijkstra's algorithm and breadth-first search in graph traversal?

Dijkstra's algorithm is a more advanced version of breadth-first search in graph traversal. While both algorithms explore nodes in a graph, Dijkstra's algorithm considers the weight of edges to find the shortest path, whereas breadth-first search simply explores nodes in a level-by-level manner.


How does the Dijkstra algorithm handle negative weights in a graph?

The Dijkstra algorithm cannot handle negative weights in a graph because it assumes all edge weights are non-negative. If negative weights are present, the algorithm may not find the shortest path correctly.


What is the website to download the yoville coin and cash generator?

If you Google this statement , you will find many sites offering generators . These all are fake and may contain harmful viruses .


Why does Dijkstra's algorithm not work with negative weights?

Dijkstra's algorithm does not work with negative weights because it assumes that all edge weights are non-negative. When negative weights are present, the algorithm may not find the shortest path due to the possibility of creating cycles that decrease the overall path length.


What are the differences between the A algorithm and Dijkstra's algorithm in terms of their efficiency and optimality in finding the shortest path?

The A algorithm is more efficient than Dijkstra's algorithm because it uses heuristics to guide its search, making it faster in finding the shortest path. A is also optimal when using an admissible heuristic, meaning it will always find the shortest path. Dijkstra's algorithm, on the other hand, explores all possible paths equally and is not as efficient or optimal as A.


How do you find Net Profit on Financial Statement?

In income statement. In the end of income statement you will find net profit.


What are the key differences between Breadth-First Search (BFS) and Dijkstra's algorithm, and how do these differences impact their respective efficiencies in finding the shortest path in a graph?

Breadth-First Search (BFS) explores all neighbors of a node before moving on to the next level, while Dijkstra's algorithm prioritizes nodes based on their distance from the start node. This means BFS may not always find the shortest path, especially in weighted graphs, whereas Dijkstra's algorithm guarantees the shortest path. Dijkstra's algorithm is more efficient in finding the shortest path in weighted graphs due to its priority queue implementation, while BFS is more efficient in unweighted graphs.


How can you find the harmful honey?

I don't know of any honey that is harmful.