Search Results - CodeGuru Forums
 CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

# Search:

Type: Posts; User: en061

## Search: Search took 0.03 seconds.

by en061
Replies
0
Views
309

### modelling

I need a bit of help proceeding to the coding part. I am trying to do a problem of solid waste collection vehicle routing using Genetic algorithm in C++. So here raises the question why should I use...

by en061
Replies
13
Views
1,289

### Re: algorithms??

...can you name some?? some algorithms that would travel through all the given points and also optimise the cost of travel ?

by en061
Replies
13
Views
1,289

### Re: algorithms??

So which is better....to find the Hamiltonian path for the network or to use the branch and bound algorithms to find the path?? Which one guarantees of finding a proper path that visits every vertex...

by en061
Replies
13
Views
1,289

### Re: algorithms??

Thanks for the reply... so when such situation arrives then how to proceed further again?? Will it be able to give a solution if we proceed in the way that you mentioned or is it going to be trapped...

by en061
Replies
13
Views
1,289

### algorithms??

i need to a coding in C++.I am trying to do problem in which i have numbers of points. Now i need to find the path that goes through all the points. This is not actually TSP because as per my...

by en061
Replies
7
Views
552

### Re: Random numbers

Means i should call srand outside the for loop?? How do i avoid having the zeros in the random number?? I just need the number among 1 to 5.
7. ## Thread: Hint on Checking a network

by en061
Replies
2
Views
345

### Hint on Checking a network

My problem goes something like this. I have a variable of 5 arrays a[5] for storing the 5nodes of a network. The network is randomly formed by the random number generator. I have the time of travel...

by en061
Replies
7
Views
552

### Re: Random numbers

for (int j=1;j<=5;j++)
{
for (int i=1;i<=5;i++)
{
srand (i);
printf ("First number: %d\n", rand() % 5);
}
printf ("\n");
}...

by en061
Replies
7
Views
552

### Re: Random numbers

Please explain me a bit more about it...i am really getting so confused..i am just a beginner in C++ :) Its only been few months that i am trying to learn it.

by en061
Replies
7
Views
552

### Random numbers

I want to have the random numbers between 1 to 5 for a variable of 5arrays. for having the random numbers i am using the code as below.

for(int i=1;i<=5;i++)
{ int j=rand()%5;
...
Results 1 to 10 of 10