answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

Is heyristic an algorithm?

A heuristic is not an algorithm, but rather a general rule of thumb. It doesn't always work, but it's fairly decent.


What is the importance of analysis in the design of an algorithm?

There are two main reasons we analyze an algorithm: correctness and efficiency. By far the most important reason to analyze an algorithm is to make sure it will correctly solve your problem. If our algorithm doesn't work, nothing else matters. So we must analyze it to prove that it will always work as expected. We must also look at the efficiency of our algorithm. If it solves our problem, but does so in O(nn) time (or space!), then we should probably look at a redesign.


What is the difference between implementation and algorithm?

An algorithm is a instruction for solving a problem. It is typically illustrated using prose, pseudo code or flowcharts, but other methods exist. The algorithm is the "here's how it's going to work" part of the solution. An implementation (of an algorithm) is a specific expression of this algorithm, using a specific programming language or any other suitable means. The implementation is the "here's how I've done it" part of the solution.


Will either kruskal or prim's algorithm work on negative edge graph?

The correctness of either Prim's or Kruskal's algorithm, is not affected by negative edges in the graph. They both work fine with negative edges. The question boils down to "Does a Priority Queue of numbers work with negative numbers?" because of the fact that both Prim's and Kruskal's algorithm use a priority queue. Of course -- as negative numbers are simply numbers smaller than 0. The "<" sign will still work with negative numbers.


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield

Related Questions

Does Dijkstra's algorithm work for negative weights in graphs?

No, Dijkstra's algorithm does not work for graphs with negative weights.


What do you mean by analysis of algorithm?

it is a processor of the work


How does the bellman ford algorithm work?

This distance-vector algorithm works by computing the shortest path , and considers weights. The algorithm was distributed widely in the RIP protocol.


What is the difference between an algorithm and a flowchart in general?

Algorithm is step wise analysis of the work to be done. Flow chart is a pictorial representation of an algorithm. As flow chart is a picture of work to be done,it may be printed in our mind when we observe it.


How does the US Algorithm work for multiplication?

just multiplie


What algorithm will work for any two fractions?

Many of them.


Does Dijkstra's algorithm work with negative weights in graphs?

No, Dijkstra's algorithm does not work with negative weights in graphs because it assumes that all edge weights are non-negative.


Is heyristic an algorithm?

A heuristic is not an algorithm, but rather a general rule of thumb. It doesn't always work, but it's fairly decent.


Why doesn't Dijkstra's algorithm work with negative weights?

Dijkstra's algorithm does not work with negative weights because it assumes that all edge weights are non-negative. Negative weights can cause the algorithm to give incorrect results or get stuck in an infinite loop.


Does Dijkstra's algorithm work for graphs with negative edge weights?

No, Dijkstra's algorithm does not work for graphs with negative edge weights because it assumes all edge weights are non-negative.


Why need algorithm?

if u want to work any program then the first step is perform step by step analysis so that algorithm is needed


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.