Hacker-s Delight

Hacker-s Delight

作者:Henry S. Warren Jr.

出版社:Addison-Wesley

出版年:2002-7-27

评分:9.5

ISBN:9780201914658

所属分类:行业好书

书刊介绍

内容简介

A collection useful programming advice the author has collected over the years; small algorithms that make the programmer's task easier.* At long last, proven short-cuts to mastering difficult aspects of computer programming * Learn to program at a more advanced level than is generally taught in schools and training courses, and much more advanced than can be learned through individual study/experience. * An instant cult classic for programmers!Computer programmers are often referred to as hackers -- solitary problem solvers engrossed in a world of code as they seek elegant solutions to building better software. While many view these unique individuals as "madmen," the truth is that much of the computer programmer's job involves a healthy mix of arithmetic and logic. In Hacker's Delight, veteran programmer Hank Warren shares the collected wisdom -- namely tips and tricks -- from his considerable experience in the world of application development. The resulting work is an irresistible collection that will help even the most seasoned programmers better their craft. Henry S. Warren Jr. has had a 40-year career with IBM, spanning the computer field from the IBM 704 to PowerPC. He has worked on various military command and control systems, and on the SETL project under Jack Schwartz at NYU. Since 1973 he has been in IBM's Research Division at Yorktown Heights, New York. Here he has done compiler and computer architecture work on the 801 computer and its several variants through PowerPC. Presently he is working on the Blue Gene petaflop computer project. He received his Ph.D. in Computer Science from the Courant Institute at New York University in 1980.

精彩摘录

-x=~x+1=~(x-1)~x=-x-1-(~x)=x+1~(-x)=x-1x+y=x-(~y)-1=(x^y)+2*(x&y)=(x|y)+(x&y)=2*(x|y)-(x^y)x-y=x+~y+1=(x^y)-2*(~x&y)=(x&~y)-(~x&y)=2*(x&~y)-(x^y)x^y=(x|y)-(x&y)x&~y=(x|y)-y=x-(x&y)~(x-y)=y-x-1=~x+yx恒等于y=(x&y)-(x|y)-1=(x&y)+~(x|y)x|y=(x&~y)+yx&y=(~x|y)-~x

——引自第10页


这里是介绍

——引自章节:算法心得

相关推荐

微信二维码