jeffgerickson / algorithms

Bug-tracking for Jeff's algorithms book, notes, etc.
7.92k stars 1.02k forks source link

[Oops.] CONSTRUCTSUBSET algorithm bug #182

Open Joshverge opened 5 years ago

Joshverge commented 5 years ago

Please verify that the error is present in the most recent revision before reporting. ->Present in 1st edition and Chapters [Jun 15 2019] Chapter number or note title: [Chp 2: Backtracking] Page number: [79] Error description: [uses wrong variable] Suggested fix (if any): [change n to i]

echuber2 commented 5 years ago

Hm, can you be more specific about what the problem is? This is what I see:

construct-subset

echuber2 commented 5 years ago

Ah, now I see the n=0 part.

Joshverge commented 5 years ago

Yeah I guess I should have mentioned the line number or something but since there is only one n present I didn't think about that.