I am a beginner in learning algo..So please bear with me..
2.1.2 Design an algorithm that makes following exchanges of 3 varioubles..
a-->b-->c--|
^ |
^----------|
So
a_temp = a;
b_temp = b;
c_temp = c;
a=c_temp;
c=b_temp;
b=a_temp;
I know this process looks ugly. Can anyone ...
Search found 6 matches
- Sat Jul 28, 2012 7:38 pm
- Forum: Algorithms
- Topic: problem 2.1.2 from how to solve it by computer, Dromey
- Replies: 1
- Views: 3830
- Sun Jan 07, 2007 4:28 pm
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50516
113, WA (beginner)
Dear group,
My code is wrong, I know that very well. The code just simply hangs.. Can any one help.. Thnaks..
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main(void)
{
long long k,
n,
result,
p;
unsigned int i;
i = pow(10,101);
/*Give p and n we need to find ...
My code is wrong, I know that very well. The code just simply hangs.. Can any one help.. Thnaks..
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main(void)
{
long long k,
n,
result,
p;
unsigned int i;
i = pow(10,101);
/*Give p and n we need to find ...
- Sat Jul 08, 2006 9:26 pm
- Forum: Volume 1 (100-199)
- Topic: 103 - Stacking Boxes
- Replies: 200
- Views: 50442
103, understanding the sample out put (beginner)
Dear group,
I can able to understand the
sample input but not the sample
out put. Can any one help this
beginner?
Thanks for any help
I can able to understand the
sample input but not the sample
out put. Can any one help this
beginner?
Thanks for any help
- Sun Jun 18, 2006 2:18 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116809
- Sat Jun 17, 2006 3:01 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116809
- Fri Jun 16, 2006 5:55 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116809
Prob 102: help a beginner
Dear group,
I am beginner and I will be happy if some body
define the term "minimize the number of bottles that are moved".
I get different answer when the arrangement of the bin is subtracted
with the total number of bottle taking all the 3 into account. Is that
what they mean by movement of ...
I am beginner and I will be happy if some body
define the term "minimize the number of bottles that are moved".
I get different answer when the arrangement of the bin is subtracted
with the total number of bottle taking all the 3 into account. Is that
what they mean by movement of ...