Freebsd Fortunes 2: 568 of 1371 |
A computer science student and a practical hacker are discussing problems
the computer science student has run in to.
CS Student: I have this singularly linked tail-queued list and I'm trying
to make it O(1) to go backwards an item, instead of O(n)...
What's the best way to go about that? Should I just use a
cached hash of each item and put it into a sorted lookup
table, and cache the hash of the last item in the current
queue entry and then go to its place in the hash table and
get the pointer value from there?
Hacker: No, you should add an item to the structure named 'prev' and
make it point to the previous item.
CS Student: But we already have a structure element with that identifier
and structure elements must have unique names within that
scope!
Hacker: So call it 'previous'.
And then the CS Student was enlightened.
|
|
|
Freebsd Fortunes 2: 569 of 1371 |
A computer scientist is someone who fixes things that aren't broken.
|
|
|
Freebsd Fortunes 2: 570 of 1371 |
A computer without COBOL and Fortran is like a piece of chocolate
cake without ketchup and mustard.
|
|
|
Freebsd Fortunes 2: 571 of 1371 |
A conclusion is simply the place where someone got tired of thinking.
|
|
|
Freebsd Fortunes 2: 572 of 1371 |
A conference is a gathering of important people who singly can
do nothing but together can decide that nothing can be done.
-- Fred Allen
|
|
|
Freebsd Fortunes 2: 573 of 1371 |
A CONS is an object which cares.
-- Bernie Greenberg.
|
|
|
Freebsd Fortunes 2: 574 of 1371 |
A conservative is a man who is too cowardly to fight and too fat to run.
-- Elbert Hubbard
|
|
|
Freebsd Fortunes 2: 575 of 1371 |
A conservative is a man
who believes that nothing should be done for the first time.
-- Alfred E. Wiggam
|
|
|
Freebsd Fortunes 2: 576 of 1371 |
A conservative is a man
with two perfectly good legs who has never learned to walk.
-- Franklin D. Roosevelt
|
|
|
Freebsd Fortunes 2: 577 of 1371 |
A conservative is one who is too cowardly to fight and too fat to run.
|
|