473,378 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

2 q's re sedgewick's algorithms in c parts 1-4 book

ben
(this isn't going to make any sense unless you have sedgewick's
"algorithms in c parts 1-4" (but the 2nd question might make sense))
page 484, program 12.2 -- exactly what code/files should be used with
it in order to compile program 12.2?
there's two lines:
#include "Item.h"
#include "ST.h"
but it is not clear at all which files or code they are. i've had a
look on the book's support site and found all the code but there's no
indication of any file names. also i don't see 'Key' declared/typed/or
whatever the correct phrase is anywhere in all the code, not once.

so basically, what do i need in order to compile program 12.2?

also this bit i find very confusing (from page 612):

Suppose that the keys are words of a fixed length, all consisting of w
bits. Our requirement that keys are distinct implies that N <= 2^w, and
we normally assume that N is significantly smaller that 2^w, since
otherwise key-indexed search (see section 12.2) would be the
appropriate algorithm to use.

section 12.2 makes it clear that key-index searching is only useful for
very small table sizes. the above text makes it sound like key-indexed
searching would be appropriate if N was only slightly smaller that 2^w.
seems completely illogical. is that a basic english logic mistake or
have i misunderstood?

any help much appreciated.

thanks, ben.
Nov 14 '05 #1
0 1317

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: John McCabe | last post by:
Hi I'm looking for something equivalent to the Data Structures and Algorithms in Ada 95 books by Biedler and Feldman etc, but based towards efficient C++ implementations. Does anyone know of...
1
by: entropy123 | last post by:
Hey all, In an effort to solve a sticky - for me - problem I've picked up Sedgewick's 'Algorithm's in C'. I've tried working through the first few problems but am a little stumped when he refers...
7
by: Moritz Beller | last post by:
Hello! Users with any sort of experience with this book, especially in terms of coding and understanding the code are welcome her. Does it really damage a C++ programmer's coding style as one...
4
by: ben | last post by:
has anyone got or read this book: robert sedgewick "algorithms in c parts 1-4"? i'm having an absolute nightmare with the book. amoung other things i'm trying to construct the necessary support...
2
by: efrat | last post by:
Hello, I'm planning to use Python in order to teach a DSA (data structures and algorithms) course in an academic institute. If you could help out with the following questions, I'd sure...
17
by: Happy Man | last post by:
Truth Seeker http://www.thisistruth.org/truth.php?f=TruthSeeker No one is compelled to accept the truth, but it is certainly a shame upon the human intellect when a man is not even...
3
by: arnuld | last post by:
i am a beginner at algorithms. i was checking ACCU and this one caught my attention: "Introduction to Computing and Algorithms" -- Russell Shackelford had anybody read this book ? i want...
53
by: Vicent Giner | last post by:
Hello. I am new to Python. It seems a very interesting language to me. Its simplicity is very attractive. However, it is usually said that Python is not a compiled but interpreted programming...
76
by: lorlarz | last post by:
Crockford's JavaScript, The Good Parts (a book review). This shall perhaps be the world's shortest book review (for one of the world's shortests books). I like Douglas Crockford (because I am a...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.