Search:
Type: Posts; User: highpriest
Search:
Search took 0.03 seconds.
-
January 20th, 2005, 05:23 PM
Mark all verticies with 1 and perform "Max Flow Min Cut" alg. The flow value is the num of all pathes.
-
December 1st, 2004, 05:35 PM
If I remember right (some years ago since I last wrote a assembler code), then the difference between iter. and rec. should be the below description.
The iter. alg. is faster, if the value of i...
-
November 29th, 2004, 06:14 PM
this
for (int i = 0; i <= keylength; i++)
sum += static_cast<int>(key[i]);
expoits your integer range!
use this:
sum += ( static_cast<int>(key[i]) % HTsize);
-
November 29th, 2004, 06:05 PM
Sorry, I am not sure at all, whether you have to find one i for all posible uvw combinations in the choosen z or to find at least on uvw combination with one i as used in the previous reply.
-
November 29th, 2004, 05:54 PM
This is not a regular expression, because you can not save the amount of turns in the first expression ( (ab^*)^n ) in a finite automat needed for the second expression ( (a^*b)^n ).
For each...
-
August 17th, 2004, 04:21 PM
Hi,
yes, the problem is DEADLOCK.
If A holds a resource and wait for a resource, wich is hold by B and B wait for the resource, wich is hold by A, then you have a deadlock.
Consider, A and...
-
January 4th, 2004, 07:34 PM
Neagle Alg. is used for sending messages - I mean to remember. It waites a timeout value before it sends the (TCP) package to receiver. It should be nothing wrong with that. Your problem seems to be,...
-
January 4th, 2004, 07:03 PM
I suggested above to use MS Access Database for this. It will be much easier to UPDATE, DELETE, INSERT new or existing towns. Also it is much easier to sort or filter the database. You can write some...
-
January 4th, 2004, 06:57 PM
This outcomes because you have likely not 20 Towns in your text file.
-
January 4th, 2004, 06:23 PM
Read this from Microsoft Knowledge Base Article - 263823
WinSock Recvfrom() Now Returns WSAECONNRESET Instead of Blocking or Timing Out.
It relates to UDP (you are using TCP). Anyway maybe it...
-
January 4th, 2004, 05:54 PM
One of the best books is from Andrew S. Tanenbaum and Maarten van Steen. The other books from Tanenbaum is also highly recomended. Being a student for computer science this books was a bible for us....
-
January 4th, 2004, 05:22 PM
You have to add st = new StringTokenizer(line, ":") within the first for loop.
StringTokenizer st ;
int x = 0;
for(int i = 0; i < CITIES; i++)
{
st =...
-
January 4th, 2004, 10:54 AM
Ahh, I forgot to tell you, that MS Text DB driver dont support UPDATE or DELETE statements. SELECT and INSERT are supported. If you want to be able to execute UPDATE or DELETE, you can convert the...
-
January 4th, 2004, 10:08 AM
Like you know, there is many roads to Rom.
1.) Define a ODBC Microsoft Text Driver to the file containing Towns
*) Controll Setting => ODBC => System-DSN
*) Add MS Text Driver Database
*) Name...
-
January 3rd, 2004, 04:53 PM
PI in radians corresponds to 180 degree
there fore corresponds 30 degrees to (PI * 30)/180 = 0,52359877559829887307710723054658.... Like you can imagine a floating point representation of 30 degrees...
-
January 2nd, 2004, 08:17 PM
Math.sin() expects an angle in radians.
-
January 2nd, 2004, 08:03 PM
Create a BufferedImage and use RescaleOp
-
January 2nd, 2004, 06:54 PM
I suppose you have an Seat object for representing a seat with row und seat number. Within this object you can override the equals method, inherited from Object class.
public boolean...
-
January 1st, 2004, 06:11 PM
Did you ever write some code in java ?
Here the complete code, which you can compile and execute.
class ReverseTest
{
public long reverse(long theNumToReverse)
{
-
December 31st, 2003, 07:29 PM
This is the best solution like khp suggested before.
s = 545 ; r=0 ;
while (s!=0) {
r += s % 10;
s /= 10;
if (s!=0) r*=10 ;
}
-
December 31st, 2003, 10:44 AM
I want to know what is better. Some says outsourcing is cost efficient and they enable you to concentrate on your main work (build cars not software). Other says the construcktor or consultant or...
-
December 31st, 2003, 09:49 AM
@rockmonkie872
what should be the reverse of 500
a) 5
b) 005
-
December 30th, 2003, 10:30 PM
Select a three digit number in which the first and the last digit differ by at least two. Construct a second number by reversing the order of digits in the first. Form a third number by taking the...
-
December 30th, 2003, 06:49 PM
In an older project i did implement my own Stringtokinizer. I want it to be threadsafe.
stringtokeniterator.h
================
#ifndef __TOKENITERATOR_H__
#define __TOKENITERATOR_H__
/**
...
-
December 30th, 2003, 06:32 PM
I would implement this by mixing multiplexing method with pipelining .
This works like this (send is async and receive/get is sync => blocking):
create one or more worker threads that waits for...
|
Click Here to Expand Forum to Full Width
|