|
MaSTaMaRViN wrote: can anyone help me with the concept of binary search
Google didn't turn up anything?
The evolution of the human genome is too important to be left to chance.
|
|
|
|
|
MaSTaMaRViN wrote: can anyone help me with the concept of binary search and how its work...??
It's much like searching for a name in the phone book. You start in the middle. If the name you are searching for is less than the current name, you can eliminate the right half of the phone book. If the name you are searching for is greater than the current name, you can eliminate the left half of the phone book. You now do the same search again, each time reducing the set by half. This is a very high-level observation.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
What you say is true at a high level, however searching for a name in the phone book is really more like interpolation search[^]. For example, if you know the name starts with 'B', then you can start much closer to the beginning than the halfway point. However, as the article states, the extra computation needed to find where to look often makes interpolation search not faster than binary search.
--
Marcus Kwok
|
|
|
|
|
Hello all,
I have created a sorting algorithm that is better than Quick Sort and even competes with Introspective Sort, but is constructed in a much simpler way.
I would like people to scrutinise the code, it is rather simple and shouldn't take long to look through. I want to know what people think of it. I have freely released the algorithm for anyone to use and develop further.
Please go to the following link to find out more:
http://www.geocities.com/nicemadnicemad/software.html
Thanks.
Chris Nash
Find the simplest proof and you have the ultimate truth.
|
|
|
|
|
A description of the algorithmm, and what makes it different from quicksort, would be nice (trawling through other peoples C sources isn't exactly a fun thing to do)
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
|
intrepid_is wrote: I have created a sorting algorithm that is better than Quick Sort...
How so?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I looked at it (even though he found "better experts" ha! ) As I understand it, he needs knowledge of the smallest and largest value, so he has a better partitioning at quicksort.
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
Hello,
I'm a newbie in computer programming.
I'm looking for a program help me to change file attributes(Created time,Modified time and last access) like FileDate By T.YogaRamanan.
Here is link :
http://www.codeproject.com/file/FileDate.asp[^]
But I want to ignore its user interface.(No Dialog box , No Text box)
I want to choose file as coding and change file attribute as coding too.
I have tried to read source code of FileDate above.
I still can't do.
Can you help me ?
Thank you.
|
|
|
|
|
This is not the right forum for your question. And dont re-post same topics all over the place.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Hi guys,
I 'm a student of computer science from Indonesia
and newbie in vb6 programming. please, help me to
learn the algorithm of vb6. the following is algorithm
question.
1) Present the prime number between 1 up to 10 that use
"Mod" and "Print" function. the Object is only 1 command
button.
Note: forbidden use "int" function
thank's for helping me.
your sincerely
IRWAN
i need help in vb6 algorithm
|
|
|
|
|
Which part don't you understand? Ask a specific question, otherwise people here aren't going to do your homework for you.
The evolution of the human genome is too important to be left to chance.
|
|
|
|
|
Tim Craig wrote: people here aren't going to do your homework for you.
I find it amazing how many people don't seem to get the clue
|
|
|
|
|
PaulC1972 wrote: I find it amazing how many people don't seem to get the clue
Lately it seems like most of them come from third world countries where the powers that be want to ship US jobs. They're too lazy to even try to do their homework and they get rewarded for it.
The evolution of the human genome is too important to be left to chance.
|
|
|
|
|
Maybe so on this site... have you recently checked Rent A Coder? I see a lot of US students posting homework questions there...
|
|
|
|
|
ChandraRam wrote: I see a lot of US students posting homework questions there...
Are you sure they really are in the US? Could be somewheres else in the world and making it look like they are in the US...
|
|
|
|
|
Have you actually looked for yourself?
|
|
|
|
|
Tim Craig wrote: third world countries where the powers that be want to ship US jobs
They can go ahead and do so. Any company that feeds these people will be in for a rude awakening when they find out their IT staff is so incompetent they leech off of people like us.
|
|
|
|
|
It is sad to read this kind of statements here. Helping each other is the main purpose of these forums. Not comparing IT staffs
|
|
|
|
|
|
well, looks like no one here will help with the homework...
try this
private sub Commad1_click()
dim i as integer
for i=2 to 10 'why 2 cos 1 is not prime number
if i mod 2 =0 then debug.print i
next i
end sub
selamat berjuang....
|
|
|
|
|
AgusBudianto wrote: well, looks like no one here will help with the homework...
Because most of us here don't do people's homework for them. Your code does not work 100%.
|
|
|
|
|
ups my mistake, the code suppose to be something like this, sorry.. sorry..
for i=2 to 10
if i mod 2<>0 then debug.print i
next i
"if we dont want to help people, then don't at least don't say something rude to them" --how sad..
-- modified at 3:36 Sunday 3rd December, 2006
|
|
|
|
|
Hi I have spent the day looking at implementing RSA on the client side with javascript and on the server side with C#.NET.
I think I am overlooking something very simple and this is my problem. To make a key of 1024 bits requires a datatype to store it in. What datatype should i use, i considered byte[] but surely byte[]*byte[] is undefined (to create the key).
Any help will be greatly appreciated
Thanks
Dan
|
|
|
|
|
You need to find a library for integers of arbitrary length or write one yourself.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|