처음에 볼 때는 생각없이 넘어가고, 풀어보거나 생각도 안하고 봤는데 곰곰이 생각해보니 이게
그럴 책이 아닌듯 싶어서 다시 한번 성실하게 보기로 한다. 위대한 책들은 위대하게 보아야 한다.
주소 : http://www.cs.bell-labs.com/cm/cs/pearls/code.html
바쁘신 분들은 아래에서 다운~
Code fromProgramming Pearls
- Column 1: Programs for sorting integers
bitsort.c -- Sort with bit vectors.
sortints.cpp -- Sort using C++ STL sets.
qsortints.c -- Sort with C library qsort.
bitsortgen.c -- Generate random integers for sorting. - Column 2: Test and time algorithms
rotate.c -- Three ways to rotate the elements of a vector.
The next two program are used in a pipeline to compute all anagrams in a dictionary
sign.c -- Sign each word by its letters in sorted order.
squash.c -- Put each anagram class on a single line. - Column 5: Scaffolding for testing and timing search functions
search.c -- Linear and binary search. - Column 7: Tiny experiment on C run times
timemod0.c -- Edit main to time one operation. - Column 8: Compute the maximum-sum subsequence in an array
maxsum.c -- Time four algs: n3, n2, n log n, n. - Column 9: Code tuning programs
genbins.c -- Profile this, then try a special-purpose allocator.
macfun.c -- Time the cost of macros and functions.
The column also uses rotate.c (Column 2), search.c (Column 5) and maxsum.c (Column 8). - Column 11: Test and time sorting algorithms
sort.cpp -- Mostly C, but also C++ sort function.
SortAnim.java -- Animate those sort functions in Java. - Column 12: Generate a sorted list of random integers
sortedrand.cpp -- Several algorithms for the task. - Column 13: Set representations for the problem in Column 12
sets.cpp -- Several data structures for sets.
genbins.c (Column 9) implements the bin data structure in C. - Column 14: Heaps
priqueue.cpp -- Implement and test priority queues.
The column also uses sort.c (Column 11) for heapsort. - Column 15: Strings
wordlist.cpp -- List words in the file, using STL set.
wordfreq.cpp -- List words in the file, with counts, using STL map.
wordfreq.c -- Same as above, with hash table in C.
longdup.c -- Find long repeated strings in input.
markov.c -- Generate random text from input.
markovhash.c -- Like markov.c, but with hashing.
markovlet.c -- Letter-level markov text, simple algorithm. - Appendix 3: Cost Models
spacemod.cpp -- Space used by various records.
timemod.c -- Table of times used by various C constructs.
You may use this code for any purpose, as long as you leave the copyright notice and book citation attached.
Copyright © 1999 Lucent Technologies. All rights reserved. Sat 31 Jul 1999
'개발자의 서재' 카테고리의 다른 글
| 프리모 레비의 생애 마지막 작품 [가라앉은 자와 구조된 자](1986) - 인간 존재의 위기 (0) | 2014.05.16 |
|---|---|
| 인간은 왜 낚시를 하는가 ? 가장 앞선 진화를 하고 있는 사람은 낚시꾼 (0) | 2014.02.05 |
| 경쟁하는 무리에서 벗어나 중대한 의미를 가진 차별화를 이루어야 하는 시점 (0) | 2013.12.30 |
| 탁월한 아이디어는 어디서 오는가 ? - 생각이란 근본적으로 신경세포의 네트워크 (1) | 2013.07.30 |
| 비이성을 알아야 실수도 덜하고 행복해 질 수 있다. - 경제 심리학 (0) | 2013.06.19 |
| 속도의 배신 - 기회는 기다려야 하고, 위기는 돌진해온다. (0) | 2013.05.24 |
| 마케팅은 인식의 싸움. 누가 사람의 마음을 빼앗아오는가 ? -마케팅 불변의 법칙 (0) | 2013.04.19 |
| 사람을 모으는 콘텐츠 전략의 모든것 - 콘텐츠 룰 (0) | 2013.04.19 |
취업, 창업의 막막함, 외주 관리, 제품 부재!
당신의 고민은 무엇입니까? 현실과 동떨어진 교육, 실패만 반복하는 외주 계약,
아이디어는 있지만 구현할 기술이 없는 막막함.
우리는 알고 있습니다. 문제의 원인은 '명확한 학습, 실전 경험과 신뢰할 수 있는 기술력의 부재'에서 시작됩니다.
이제 고민을 멈추고, 캐어랩을 만나세요!
코딩(펌웨어), 전자부품과 디지털 회로설계, PCB 설계 제작, 고객(시장/수출) 발굴과 마케팅 전략으로 당신을 지원합니다.
제품 설계의 고수는 성공이 만든 게 아니라 실패가 만듭니다. 아이디어를 양산 가능한 제품으로!
귀사의 제품을 만드세요. 교육과 개발 실적으로 신뢰할 수 있는 파트너를 확보하세요.
캐어랩