Re: algorithms + data structures = programs



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"

.



Relevant Pages

  • Re: algorithms + data structures = programs
    ... Is there a specific notation you are ... struggling with? ... trouble is something else. ...
    (comp.programming)
  • Re: How to pass various structures to function?
    ... Richard Heathfield wrote, On 03/05/07 05:33: ... I'm having trouble coming up with a case where the Right Answer is ... Unless the key to be searched on is a common initial sequence to all the structure types of interest. ... Without knowing more we can't say what the best solution is, ...
    (comp.lang.c)
  • Re: Violin puzzle
    ... Richard Heathfield wrote: ... the trouble of constructing unsolvable ... No clue. ... Western Australia ...
    (rec.puzzles)
  • about grammatical category or word class
    ... I was struggling with a paper about the naming of cosmetic ... I got into trouble when I had no idea how to make a ... Because I am not a English native speaker, ...
    (alt.usage.english)
  • Re: Public Key, Set-(bi)partition
    ... Kiuhnm wrote: ... I'm having trouble with the notation] ... Didn't Diffie try that a long time ago, in his search for a working ...
    (sci.crypt)