Re: algorithms + data structures = programs
- From: "arnuld" <arnuld3@xxxxxxxxx>
- Date: 23 Jul 2006 11:32:18 -0700
Richard Heathfield wrote:
Oh dear. Wait there a second. [F/X rustle rustle] Okay, I think I'm with
you...
:-) what is it exactly -> [F/X rustle rustle]
but after that he starts with Bisection/Binary-Search
Page 13, in my edition.
page 14 in my edition ;-)
Okay, here at least we can perhaps help. But first, please explain which
bit(s) you don't understand. Is there a specific notation you are
struggling with? Is it the
----
\
\
/
/
----
sign? If so, fear not. This sign (the "sigma") is just the way
mathematicians have of expressing a loop-that-adds-up. Thus:
n - 1
----
\
\ a[i]
/
/
----
i = 0
is the mathematician's way of saying:
sum = 0;
for(i = 0; i < n; i++)
{
sum += a[i];
}
SIGMA is pretty easy for me. even quadraticd equations & binomail
theorm. trouble is something else.
If it's some other thing that's troubling you, please do give us more
detail.
sure, here is the trouble:
r := 10*r + d[i]
d[i] := r div 2
r := r-2*d[i]
more *shocking* is its implmentation in PASCAL.
thanks Rich
"arnuld"
.
- Follow-Ups:
- Re: algorithms + data structures = programs
- From: Rob Thorpe
- Re: algorithms + data structures = programs
- From: Richard Heathfield
- Re: algorithms + data structures = programs
- From: Aki Tuomi
- Re: algorithms + data structures = programs
- References:
- algorithms + data structures = programs
- From: arnuld
- Re: algorithms + data structures = programs
- From: Richard Heathfield
- algorithms + data structures = programs
- Prev by Date: Re: algorithms + data structures = programs
- Next by Date: Re: algorithms + data structures = programs
- Previous by thread: Re: algorithms + data structures = programs
- Next by thread: Re: algorithms + data structures = programs
- Index(es):
Relevant Pages
|