Click here to Skip to main content
15,893,564 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionHow to find permutations Pin
Mushtaque Nizamani28-Aug-06 18:46
Mushtaque Nizamani28-Aug-06 18:46 
AnswerRe: How to find permutations Pin
Bassam Abdul-Baki29-Aug-06 2:54
professionalBassam Abdul-Baki29-Aug-06 2:54 
GeneralRe: How to find permutations Pin
Mushtaque Nizamani29-Aug-06 4:01
Mushtaque Nizamani29-Aug-06 4:01 
GeneralRe: How to find permutations Pin
Bassam Abdul-Baki29-Aug-06 4:11
professionalBassam Abdul-Baki29-Aug-06 4:11 
AnswerRe: How to find permutations Pin
djlove6-Sep-06 6:22
djlove6-Sep-06 6:22 
QuestionFaster Search.. Pin
HakunaMatada27-Aug-06 22:51
HakunaMatada27-Aug-06 22:51 
AnswerRe: Faster Search.. Pin
Ingo27-Aug-06 23:21
Ingo27-Aug-06 23:21 
AnswerRe: Faster Search.. Pin
El Corazon28-Aug-06 2:37
El Corazon28-Aug-06 2:37 
Every data structure has a specific use.

lists are designed for inset-in-the middle scenerios, just as stacks are designed for Last-In-First-Out scenerios. A stack really can't be compared to the other two because usage is completely different.

A binary tree is not a replacement for a list, per se. Though it does handle add-anywhere scenerios, as does a Hash table. A binary tree is much superior to a list for searching, and even over a hash-table for some-search operations. A hash table is a one to one relationship with a key, and requires pre-allocated space. That makes its memory overhead a constant, its access time for any "one" item a constant. But if you want to output in sorted format, a hash is lousy, and a tree is still great.

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

AnswerRe: Faster Search.. Pin
leppie28-Aug-06 4:26
leppie28-Aug-06 4:26 
AnswerRe: Faster Search.. Pin
Daniel Grunwald29-Aug-06 9:04
Daniel Grunwald29-Aug-06 9:04 
GeneralRe: Faster Search.. Pin
James Laing29-Aug-06 11:56
James Laing29-Aug-06 11:56 
GeneralRe: Faster Search.. Pin
El Corazon29-Aug-06 13:23
El Corazon29-Aug-06 13:23 
GeneralRe: Faster Search.. Pin
Daniel Grunwald29-Aug-06 22:50
Daniel Grunwald29-Aug-06 22:50 
QuestionSuperscript and Subscript Calculation Pin
Identity Undisclosed24-Aug-06 22:12
Identity Undisclosed24-Aug-06 22:12 
AnswerRe: Superscript and Subscript Calculation Pin
User 171649227-Aug-06 8:16
professionalUser 171649227-Aug-06 8:16 
Questionencoding Pin
militiaware23-Aug-06 20:55
militiaware23-Aug-06 20:55 
AnswerRe: encoding Pin
Zac Howland24-Aug-06 3:41
Zac Howland24-Aug-06 3:41 
GeneralRe: encoding Pin
Sebastian Schneider24-Aug-06 23:11
Sebastian Schneider24-Aug-06 23:11 
GeneralRe: encoding Pin
Zac Howland25-Aug-06 4:13
Zac Howland25-Aug-06 4:13 
GeneralRe: encoding Pin
Sebastian Schneider25-Aug-06 4:21
Sebastian Schneider25-Aug-06 4:21 
GeneralRe: encoding Pin
Zac Howland25-Aug-06 4:29
Zac Howland25-Aug-06 4:29 
GeneralRe: encoding Pin
Dan Neely25-Aug-06 4:38
Dan Neely25-Aug-06 4:38 
GeneralRe: encoding Pin
Zac Howland25-Aug-06 4:46
Zac Howland25-Aug-06 4:46 
GeneralRe: encoding Pin
Sebastian Schneider26-Aug-06 13:28
Sebastian Schneider26-Aug-06 13:28 
GeneralPoincaré Conjecture Pin
Bassam Abdul-Baki23-Aug-06 8:00
professionalBassam Abdul-Baki23-Aug-06 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.