Changeset 173:de9849252e78 in lemon-0.x for src/work/jacint/dijkstra.cc
- Timestamp:
- 03/12/04 00:31:13 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@246
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/jacint/dijkstra.cc
r170 r173 67 67 dijkstra_test.dist(u) - dijkstra_test.dist(v) != cap.get(e) ) 68 68 { 69 std::cout<<"Hibas fael a fibonaccis Dijkstraban!"<<std::endl; 69 std::cout<<"Hibas fael a fibonaccis Dijkstraban: "<< 70 dijkstra_test.dist(u) - dijkstra_test.dist(v)- cap.get(e)<<std::endl; 70 71 ++hiba_fib; 71 72 } … … 73 74 dijkstra_test2.dist(u) - dijkstra_test2.dist(v) != cap.get(e) ) 74 75 { 75 std::cout<<"Hibas fael a binarisos Dijkstraban!"<<std::endl; 76 std::cout<<"Hibas fael a binarisos Dijkstraban: "<< 77 dijkstra_test2.dist(u) - dijkstra_test2.dist(v)- cap.get(e)<<std::endl; 76 78 ++hiba_bin; 77 79 } 78 80 } 79 } 81 82 if ( dijkstra_test.dist(u) != dijkstra_test2.dist(u) ) 83 std::cout << "Nem egyezik meg a tavolsag!"<<std::endl; 84 85 86 } 80 87 81 88 std::cout << "Hibas elek szama a fibonaccis Dijkstraban: " … … 85 92 << hiba_bin << " a " << G.edgeNum() <<"-bol."<< std::endl; 86 93 94 95 96 87 97 return 0; 88 98 }
Note: See TracChangeset
for help on using the changeset viewer.