I'm new with graph algoithm and I just start reading about graphs
but I'm al little bit confused about Bellman-Ford algorithm
I still can't understand how it works.....
can anyone help me.....
Search found 56 matches
- Thu May 27, 2004 7:55 am
- Forum: Algorithms
- Topic: Bellman-Ford algorithm
- Replies: 2
- Views: 1543
- Wed Dec 17, 2003 2:48 pm
- Forum: Algorithms
- Topic: carmichael number
- Replies: 1
- Views: 1408
carmichael number
what formula should I use to generate carmichael numbers?
- Sat Nov 22, 2003 7:40 am
- Forum: Volume 100 (10000-10099)
- Topic: 10062 - Tell me the frequencies!
- Replies: 235
- Views: 42924
10062
what's wrong with my code? [c] #include<stdio.h> void main() { int f[256]; char line[1001]; int i,min,idx; int ctr; /* freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); */ while(gets(line)!=NULL) { for(i=0;i<256;i++) { f =0; } for(i=0;line !='\0';i++...
- Mon Nov 17, 2003 1:46 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 79270
- Sun Nov 16, 2003 3:36 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 79270
- Thu Nov 13, 2003 3:55 am
- Forum: Volume 4 (400-499)
- Topic: 497 - Strategic Defense Initiative
- Replies: 144
- Views: 24305
- Thu Nov 13, 2003 3:43 am
- Forum: Volume 103 (10300-10399)
- Topic: 10340 - All in All
- Replies: 129
- Views: 35119
- Wed Nov 12, 2003 6:18 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10340 - All in All
- Replies: 129
- Views: 35119
10340 RTE
why is my code resulting RTE (SISVG)? [c]#include<stdio.h> #include<string.h> void main() { char a[10000]; char b[10000]; int i,j; int len; while(scanf("%s %s",a,b)!=EOF) { j=0; len=strlen(a); for(i=0;b !='\0';i++) { if(j==len) { break; } if(b ==a[j]) { j++; } } if(j==len) printf("Yes...
- Wed Nov 12, 2003 4:53 pm
- Forum: Volume 4 (400-499)
- Topic: 497 - Strategic Defense Initiative
- Replies: 144
- Views: 24305
still generating the wrong output it generates Max hits: 0 -858993460 Max hits: 4 1 2 3 5 Max hits: 3 7 18 45 Max hits: 2 1 2 Max hits: 4 1 4 5 6 instead of Max hits: 4 1 2 3 5 Max hits: 3 7 18 45 Max hits: 2 1 2 Max hits: 4 1 4 5 6 Max hits: 3 1 3 5 I still have problem with the multiple input.....
- Wed Nov 12, 2003 1:38 pm
- Forum: Volume 4 (400-499)
- Topic: 497 - Strategic Defense Initiative
- Replies: 144
- Views: 24305
497 - wrong input maybe?
I have tested my code using various kinds of sample inputs but it still WA
but then I look the problem is multiple input type
so do I have to input the number of test case first?
and if I do, what input that shows the end of input for one test case?
thanks before
but then I look the problem is multiple input type
so do I have to input the number of test case first?
and if I do, what input that shows the end of input for one test case?
thanks before
- Wed Sep 03, 2003 9:06 am
- Forum: Off topic (General chit-chat)
- Topic: A New Kind of Science
- Replies: 1
- Views: 1926
A New Kind of Science
Has anyone here read the book?
what is it about?
is it good?
I'm just wondering about what's in it
what is it about?
is it good?
I'm just wondering about what's in it
- Sun Jul 13, 2003 4:29 am
- Forum: Algorithms
- Topic: Big Numbers
- Replies: 5
- Views: 2757
- Sat Jul 12, 2003 2:31 pm
- Forum: Algorithms
- Topic: Big Numbers
- Replies: 5
- Views: 2757
Big Numbers
do you know the algorithm how to store a big number in an array of char
and then calculate it?
I know how to do it for addition and substraction but for multiplication I still can't find the right way.....
the number can be floating type
like : 1234.52
please help me with my problem here......
and then calculate it?
I know how to do it for addition and substraction but for multiplication I still can't find the right way.....
the number can be floating type
like : 1234.52
please help me with my problem here......
- Sat Jul 05, 2003 3:35 am
- Forum: Other words
- Topic: I can't download the problems from this website!!
- Replies: 12
- Views: 1972
- Fri Jul 04, 2003 6:29 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10235 - Simply Emirp
- Replies: 150
- Views: 34544