TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Algorithms by Jeff Erickson

595 pointsby ngzhianover 4 years ago

21 comments

dkfjsover 4 years ago
Not proving solutions to textbooks seems to be a common theme in mathematics and theoretical computer science. It makes it difficult for those outside of the traditional classroom to learn the material. Instead textbook writers seem to have this adversarial approach against readers, thinking they’ll “cheat themselves” if they look up solutions or attempt to verify their work. Experts make mistakes, beginners would presumably make even more mistakes. Without a feedback mechanism beginners can’t truly know whether their logic is impeccable or if they have a subtle error that they themselves cannot detect. They could easily fool themselves that they have correct understanding.<p>Due to that I will not recommend this current book to any colleagues.<p>If you want an example of a fellow hacker news member that did things right, check out <a href="http:&#x2F;&#x2F;joshua.smcvt.edu&#x2F;linearalgebra&#x2F;" rel="nofollow">http:&#x2F;&#x2F;joshua.smcvt.edu&#x2F;linearalgebra&#x2F;</a><p>He provides solutions and lecture videos... this is truly a democratization approach to learning and a model that other academics should follow.
评论 #26077366 未加载
评论 #26077327 未加载
评论 #26078316 未加载
评论 #26081375 未加载
评论 #26078739 未加载
评论 #26078142 未加载
评论 #26077541 未加载
评论 #26078968 未加载
评论 #26080942 未加载
评论 #26081915 未加载
评论 #26094365 未加载
评论 #26077135 未加载
asicspover 4 years ago
From <a href="https:&#x2F;&#x2F;jeffe.cs.illinois.edu&#x2F;teaching&#x2F;algorithms&#x2F;hwex.html#solutions" rel="nofollow">https:&#x2F;&#x2F;jeffe.cs.illinois.edu&#x2F;teaching&#x2F;algorithms&#x2F;hwex.html#...</a><p>&gt;<i>Please do not ask me for solutions. With very rare exceptions, I will say no, even if you are an instructor. I recognize that my stance limits the utility of these materials, especially for self-learners, but I&#x27;m trying to optimize the learning experience of my own students at Illinois. The point of homework is not to solve that particular homework problem, but to practice solving a type of problem and get honest feedback on your progress. I&#x27;ve found that when solutions are available, my own students are much more likely to rely on them, rather than trying to figure out the problems themselves, which means they get both less practice and less honest feedback, which means they do worse on exams and in the course overall.</i><p>Interesting. I was asked multiple times for solutions to my self-pub ebooks that I relented. I didn&#x27;t add them initially as I wanted readers to solve by themselves or ask for help if needed (and I did get a few mails, saw one of them asked on stackoverflow as well).<p>See also <a href="https:&#x2F;&#x2F;github.com&#x2F;tayllan&#x2F;awesome-algorithms" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tayllan&#x2F;awesome-algorithms</a> for more learning resources, practice problems, visualizations, etc.
评论 #26075397 未加载
评论 #26075081 未加载
评论 #26076588 未加载
评论 #26075135 未加载
评论 #26085450 未加载
评论 #26077774 未加载
评论 #26095493 未加载
评论 #26075677 未加载
评论 #26075593 未加载
评论 #26074995 未加载
bfungover 4 years ago
Good ‘ole CS 373, had Erickson back in 2002 and it’s def. a defining course in CS at UIUC.<p>The answers to a lot of these are now google-able; you’ll learn more by researching than being spoon fed the solution!<p>Imagine those of us students back then when google wasn’t a verb yet trying to solve these problems!
评论 #26075025 未加载
评论 #26075448 未加载
chilleeover 4 years ago
FWIW, I really liked the sections of this book that I&#x27;ve read. In particular, I read the sections on &quot;Minimum Spanning Trees&quot; and &quot;Fast Fourier Transform&quot; and found them the clearest treatment of the subject that I&#x27;ve seen.
whoisburbanskyover 4 years ago
Does the cover say Al-Khawarizmi, rotated 90 degrees and stamped four times?
评论 #26074479 未加载
dfaivover 4 years ago
Prof Erickson once told me I look like Richard Feynman - 20 years later, it looks like that may be the peak achievement of my software engineering career.
jason2323over 4 years ago
In my experience these actually didn’t do a great job of explaining things like dynamic programming. I prefer Kleinberg and Tardos
评论 #26074450 未加载
ArcMexover 4 years ago
Doesn&#x27;t hurt to have Possible Solutions to the exercises to questions that don&#x27;t have singular, definitive answers. I wouldn&#x27;t even add answers to questions on definitions as those can be referenced in the text itself or the notes taken down. But filtering through a map can be done in many ways and a Possible Solution is an interesting way to appreciate a different point of view. But that means the learner, self-taught or otherwise, still should have the discipline to at least to arrive at solution themselves before reviewing the author&#x27;s selected one(s).
评论 #26076847 未加载
oplavover 4 years ago
Here&#x27;s a previous post on HN with lots of discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18805624" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18805624</a>
评论 #26074651 未加载
评论 #26075122 未加载
paxysover 4 years ago
Jeff Erickson was my professor for the entire CS *73 stack at UIUC. Great teacher, but I still have nightmares thinking about those exams...
maxtollenaarover 4 years ago
Can&#x27;t find the exact policy reference, but I remember that if you don&#x27;t understand Jeff&#x27;s problems(in HW or exams), you could write &quot;I don&#x27;t know&quot; and get 25% of the grades for the problems<p>not exact reference towards the policy: &quot;In the table below, green scores are above 95% and red scores are below 25% (equivalent to &quot;I don&#x27;t know&quot; on every page); those outliers were excluded when computing statistics and cutoffs.&quot; - <a href="https:&#x2F;&#x2F;courses.engr.illinois.edu&#x2F;cs473&#x2F;fa2012&#x2F;" rel="nofollow">https:&#x2F;&#x2F;courses.engr.illinois.edu&#x2F;cs473&#x2F;fa2012&#x2F;</a>
评论 #26096088 未加载
cpsempekover 4 years ago
Love the style already. Here&#x27;s a footnote from Chapter 1, and a reason while I&#x27;ll continue to (very leisurely) read this book.<p>&gt; When I was an undergraduate, I attributed recursion to “elves” instead of the Recursion Fairy, referring to the Brothers Grimm story about an old shoemaker who leaves his work unfinished when he goes to bed, only to discover upon waking that elves (“Wichtelmänner”) have finished everything overnight. Someone more entheogenically experienced than I might recognize these Rekursionswichtelmänner as Terence McKenna’s “self-transforming machine elves”.
nickkellover 4 years ago
I&#x27;m a developer, but don&#x27;t have the foggiest idea of how to prove something by induction. Is this the kind of book I should look at? Or is there something that should be taken as a prerequisite?
评论 #26078081 未加载
评论 #26081863 未加载
weaksauceover 4 years ago
it&#x27;s a bit of a shame that the comments here have descended into a quibble over the availability of the solutions to the questions for each of the sections. All the while overlooking just how excellent the source material is written and also overlooking the fact that this is an entire textbook on college level algorithms that is being gifted away for free instead of locked behind a 150-200 dollar paywall at the bookstore.<p>to Jeff Erickson: Thanks for the book
评论 #26096092 未加载
Maksadbekover 4 years ago
I think there are more than enough books to learn algorithms now. But there are a very little amount of resources that teach how to use them to solve problems.
评论 #26075605 未加载
评论 #26077982 未加载
评论 #26077486 未加载
person_of_colorover 4 years ago
I still didn&#x27;t understand the dynamic programming chapter.<p>What&#x27;s the best way to prepare for DP in interviews?
评论 #26082623 未加载
mpurhamover 4 years ago
I remember spending hours sometimes trying to solve a single problem but I did not look up the solutions just worked my way through the problem sets.<p>Algorithms definitely helped me prove code without explicitly writing it
curiousDogover 4 years ago
I wish the solutions to the problems in this book were available somewhere.
评论 #26074592 未加载
wrycoderover 4 years ago
I’d recommend downloading at least the frontmatter, which has great information on prerequisites and matching (free) texts, plus an annotated bibliography of texts at the level of the book itself.
spicymakiover 4 years ago
Thanks for posting this. I like the links to prerequisite information as well.
app4softover 4 years ago
&gt; <i>Algorithms by Jeff Erickson (Free algorithms textbook)</i><p>Please, change title to: <i>&quot;Algorithms by Jeff Erickson, free book (2019)&quot;</i>
评论 #26075127 未加载
评论 #26074921 未加载