Convert figure images to markdown
This commit is contained in:
parent
307b59584f
commit
77a95ec319
115 changed files with 218 additions and 403 deletions
6
10-03.md
6
10-03.md
|
|
@ -18,8 +18,7 @@ iterations this approach requires relative to Listing 10.1 depends
|
|||
heavily on the values of iL and iS, so it's not always faster, but, as
|
||||
Table 10.1 indicates, Listing 10.2 is generally much better code.
|
||||
|
||||
\
|
||||
**Figure 10.2** *Using repeated subtraction algorithm to find a GCD.*
|
||||

|
||||
|
||||
Listing 10.2 is a far graver misstep than Listing 10.1, for all that
|
||||
it's faster. Listing 10.1 is obviously a hacked-up, brute-force
|
||||
|
|
@ -98,8 +97,7 @@ especially for large numbers (and imagine if we were working with large
|
|||
 *Had I been implementing GCD determination without Sedgewick's help, I would surely not have settled for Listing 10.1—but I might well have ended up with Listing 10.2 in my enthusiasm over the "brilliant" discovery of subtracting the lesser Using Euclid's algorithm to find a GCD number from the greater. In a commercial product, my lack of patience and discipline could have been costly indeed.*
|
||||
------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
\
|
||||
**Figure 10.3** *Using Euclid's algorithm to find a GCD.*
|
||||

|
||||
|
||||
Give your mind time and space to wander around the edges of important
|
||||
programming problems before you settle on any one approach. I titled
|
||||
|
|
|
|||
Loading…
Reference in a new issue