80 likes | 228 Views
알고리즘. 공통 팁 #1. 교재. Algorithms 4th edition , March 19, 2011 Authors : Robert Sedgewick , Kevin Wayne / Princeston Univ . http ://algs4.cs.princeton.edu
E N D
알고리즘 공통 팁 #1
교재 • Algorithms 4th edition , March 19, 2011 • Authors: Robert Sedgewick, Kevin Wayne / Princeston Univ. • http://algs4.cs.princeton.edu • for a freely accessible, comprehensive Web site, including text digests, program code, test data, programming projects, exercises, lecture slides, and other resources. • Chapter 1: Fundamentals • Programming Model/Data Abstraction/Bags, Stacks, and Queues • Analysis of Algorithms/Case Study: Union-Find • Chapter 2: Sorting • Elementary Sorts/Mergesort/Quicksort/Priority Queues/Applications • Chapter 3: Searching • Symbol Tables/Binary Search Trees/Balanced Search Trees/Hash Tables • Applications • Chapter 4: Graphs • Undirected Graphs/Directed Graphs/Minimum Spanning Trees/Shortest Paths • Chapter 5: Strings • String Sorts/Tries/Substring Search/Regular Expressions/Data Compression • Chapter 6: Context
Coursera – Princeton Univ. • Algorithms, Part I • Kevin Wayne and Robert Sedgewick • 등록하고수강할 수 있다. • 6주 강의 – 2013.8.23 시작 • 75분*2시간/Week • https://www.coursera.org/course/algs4partI
OCW(OpenCourse Ware) • MIT OCW • http://www.snow.or.kr/lecture/applied_sciences/computer_science/532.html(한글자막) • 챨스E. 라이서손 한글자막
SDF 파일 생기지 않게 • VS2010 옵션을 보니 sdf파일 생성되지 않게 하는 방법이 있네요. • 이 파일은 디폴트로 생성되는 것으로, 생성되지 않도록 VS2010 옵션을 변경할 수 있습니다. • (옵션 -> 텍스트 편집기 -> C/C++ -> 고급탭-> 대체(fallback) 위치 :기본은 false로 되어있음 -> true로 변경하면 됨)
Random 사용법 // rand() : 0 ~ RAND_MAX(32767) srand((unsigned)time(NULL)); for(inti=0; i<10; i++) a[i] = rand()%100; // 0 ~ 99
시간측정 #include“time.h” clock_tstart, finish; start = clock(); //… 측정할 프로그램 … finish = clock(); cout << (double)(finish - start)/CLOCKS_PER_SEC <<"초";