taocp Questions

2

Solved

I can't figure out what Knuth meant in his instructions for an exercise 8 from Chapter 1.1. The task is to make an efficient gcd algorithm of two positive integers m and n using his notation thet...
Tucana asked 4/11, 2014 at 18:39

2

I'd like to be able to learn MIX/MMIX, but I don't know the toolchain that one would use to write it. I've used uVision in the past for ARM assembler related things, does such an equivalent exist f...
Nichrome asked 12/9, 2015 at 3:33

5

Solved

I'm just starting to read TAOCP Volume 1 and I'm having trouble understanding the style. Knuth mentions a computational method to be a quadruple (Q,I, Omega, f) -- but I am having trouble understa...
Zilber asked 19/2, 2009 at 18:14

2

Solved

I'm trying to implement a gaussian distributed random number generator in the interval [0,1]. float rand_gauss (void) { float v1,v2,s; do { v1 = 2.0 * ((float) rand()/RAND_MAX) - 1; v2 = 2.0 ...
Bugle asked 13/3, 2011 at 2:31

3

Solved

I have been reading the Art of Computer Programming by Donald Knuth Volume 1. Now I finished the first part where all the mathematics were explained and it was quite a pleasure. Unfortunately, on p...
Chesty asked 4/1, 2014 at 17:29

3

There is a question in TAOCP vol 1, in "Notes on Exercises" section, which goes something like: "Prove that 13^3 = 2197. Generalize your answer. (This is a horrible kind of problem that the author...
Orethaorferd asked 5/10, 2009 at 7:27

4

Solved

The classic algorithm books (TAOCP, CLR) (and not so classic ones, such as the fxtbook)are full of imperative algorithms. This is most obvious with algorithms whose implementation is heavily based ...
Arianna asked 1/8, 2011 at 12:23

3

Solved

I came to a career in software development with a degree in English, rather than Computer Science or another science/engineering background. I have gone a long way on my self-taught basis, but afte...
Hayward asked 23/8, 2010 at 16:5

1

Solved

Can someone explain to me how division in MIX (from TAOCP by Knuth) works on a byte-to-byte basis? rA = |-| . . . .0| rX = |+|1235|0|3|1| The memory location 1000 contains |-|0|0|0|2|0|. When...
Kati asked 20/4, 2009 at 16:8

3

Solved

I'm doing the exercises to TAOCP Volume 1 Edition 3 and have trouble understanding the syntax used in the answer to the following exercise. Chapter 1 Exercise 8 Computing the greatest common divi...
Fructify asked 22/2, 2009 at 16:51
1

© 2022 - 2024 — McMap. All rights reserved.