Microsoft PowerPoint - 08_Dynamic_Prog_01.pptx

Size: px
Start display at page:

Download "Microsoft PowerPoint - 08_Dynamic_Prog_01.pptx"

Transcription

1 CSW3010 (Introduction to Computer Algorithms) 담당교수 : 임종석서강대학교컴퓨터공학과 Dynamic Programming ( 동적계획알고리즘 ) Optimization Problem 을해결하기위한알고리즘. Bottom-up Approach : 주어진 instance 에대하여 1. 크기가가장작은모든 sub-instance 들에대해해를각각구하여저장한다. 2. 다음크기가작은모든 sub-instance 들에대해해를구하여저장한다. 이를위하여사전에구한 sub-instance 들의해를이용한다. 3. 2의과정을원래주어진 instance에대한해를구할때까지계속반복한다. 실제해구하기 Bottom-up으로구한것은일반적으로 cost. Top-down으로실제해를구한다. 2

2 D&C Algorithm 과 Dynamic Programming D&C Algorithm A는 B와 C로분할되고,B는 D와 E로분할되며,C는 F와 G 로분할되었다 (D,E,F,G는각각더이상분할불가). D와 E의해를취합하여 B의해를구하고,F와 G의해를취합하여 C의해를구한다. 마지막으로 B와 C의해를취합하여 A의해를구한다. D&C Algorithm에서는 sub-instance의해를중복사용하지않는다. 3 D&C Algorithm 과 Dynamic Programming 동적계획알고리즘 먼저최소단위인 D, E, F, G의해를각각구한다. D, E, F (E, F, G) 의해를이용하여 B(C) 의해를구한다. Sub-instance의해를상위레벨에서중복사용할수있다. B 와 C 의해를구하는데 E, F 가공통으로필요. 그리고, sub-instance 들사이에의존적관계가존재하는데, 대부분의경우이관계가뚜렷하게보이지않아서 함축적인순서 (implicit order) 라고도한다. 4

3 All Pairs Shortest Path 이문제는각 vertex를시작점으로하여 Dijkstra의최단경로알고리즘을수행할수있다 O(n 3 ), where n = V. Warshall은 graph에서모든쌍의경로존재여부 (transitive closure) 를찾아내는 dynamic programming 알고리즘을제안했고, Floyd는이를변형하여모든 all pair shortest path를찾는알고리즘을개발하였다. Floyd algorithm의시간복잡도는 O(n 3 ) 으로 Dijkstra algorithm 을 (n-1) 번사용할때의시간복잡도와동일하다. 그러나 Floyd algorithm은매우간단하여 Dijkstra algorithm을사용하는것보다효율적이다. 5 Floyd Algorithm Design 동적계획알고리즘으로모든쌍최단경로문제를해결하려면먼저부분문제 (sub-instance) 들을찾아야한다. 이를위해일단그래프의점 (vertex) 의수가적을때를생각해보자. 그래프에 3개의점이있는경우, 점 i에서점 j까지의최단경로를찾으려면 2가지경로, 즉, 점 i에서점 j로직접가는경로와점 1을경유하는경로중에서짧은것을선택하면된다. 1 i j 6

4 Floyd algorithm의기본아이디어는경유가능한점들을 점 1로부터시작하여, 점 1과 2, 그다음엔점 1, 2, 3으로하나씩추가하여, 마지막에는점 1 n까지의모든점을경유가능한점들로하여, 모든쌍의최단경로의거리를계산하는것이다. 부분문제정의 ( 입력그래프의점을각각 1, 2, 3,, n 이라하자 ) D ijk = 점 {1, 2,, k} 만을경유하는, 점 i로부터점 j까지의모든경로중에서가장짧은경로의거리 점 1에서점 k까지의모든점들을경유할필요는없다. D ijk 는점i에서점 j 간의 edge (i,j) 의가중치일수도있다. 또한, 만일 k i, k j이고,k=0인경우, 점 0은그래프에없으므로어떤점도경유하지않는다는것을의미한다. 따라서 D ij0 은입력으로주어지는 edge (i,j) 의가중치이다. 7 크기가가장작은 sub-instance D ij1 은 i에서점 1을경유하여 j로가는경로와i에서 j로직접가는경로, 즉, 선분 (i,j), 중에서짧은거리이다. 따라서모든쌍 i와 j에대하여 D ij1 을계산하는것이가장작은부분문제들이다. 단,i 1, j 1이다. D i1 0 1 D 1j 0 i D ij 0 j D ij 1 8

5 Next Smallest Sub-instance 점 i에서점 2를경유하여 j로가는경로의거리와 D ij1 중에서짧은거리를D ij2 로정한다. 여기서, 점 2를경유하는경로의거리는 D i21 + D 2j1 이다. 모든쌍 i와 j에대하여 D ij2 를계산하는것이그다음으로큰부분문제들이다. 단,i 2, j 2이다. D i2 1 2 D 2j 1 i D ij 1 j D ij 2 9 General Case 점 i에서점 k를경유하여 j로가는경로의거리와 D k-1 ij 중에서짧은것을로정한다. 여기서, 점 k를경유하는경로의거리는 D k-1 ik + D k-1 kj 이고,i k, j k이다. D ik k-1 k D kj k-1 i j D ij k D ij k-1 이런방식으로 k 가 1 에서 n 이될때까지 D ijk 를계산해서, D ijn, 즉, 모든점을경유가능한점들로고려된모든쌍 i 와 j 의최단경로의거리를찾는방식이 Floyd 의모든쌍최단경로알고리즘이다. 10

6 Floyd Algorithm AllPairsShortest 입력 : 2차원배열 D, where, D[i,j] = edge (i,j) 의가중치. 만일 edge (i,j) 가존재하지않으면 D[i,j] =. 모든 i에대하여 D[i,i]=0. 출력 : 모든쌍최단경로의거리를저장한 2-d 배열 D. 1. for k = 1 to n 2. for i = 1 to n 3. for j = 1 to n 4. D[i,j] = min{ D[i,k] + D[k,j], D[i,j] }; D[i,k] k D[k,j] i old D[i,j] j new D[i,j] 11 Floyd Algorithm 의특징 Negative cost edge is allowed. However, the graph must have no cycle with negative cost. O(n 3 ) algorithm, where n is the number of vertices. 12

7 Running Example Initial Values of D[i][j] D Running Example (cont d) k=1(d[][] 값이갱신된것만 ) D D[4,2] = min{d[4,2], D[4,1]+D[1,2]} = min{, -2+4} = 2 D[4,3] = min{d[4,3], D[4,1]+D[1,3]} = min{, -2+2} = 0 14

8 Running Example (cont d) k=2(d[][] 값이갱신된것만 ) D D[1,5] = min{d[1,5], D[1,2]+D[2,5]} = min{,4+4}=8 D[5,3] = min{d[5,3], D[5,2]+D[2,3]} = min{, -3+1} = Running Example (cont d) k=3(d[][] 값이갱신된것만 ) D D[1,4] = min{d[1,4], D[1,3]+D[3,4]} = min{5, 2+1} = 3 D[1,5] = min{d[1,5], D[1,3]+D[3,5]} = min{,2+2}=4 D[2,1] = min{d[2,1], D[2,3]+D[3,1]} = min{,1+1}=2 D[2,4] = 2, D[2,5] = 3, D[5,1] = -1, D[5,4] =

9 Running Example (cont d) k=4(d[][] 값이갱신된것만 ) D D[2,1] = min{d[2,1], D[2,4]+D[4,1]} = min{2, 2 2} = 0 D[3,1] = min{d[3,1], D[3,4]+D[4,1]} = min{1, 1 2} = 1 D[5,1] = min{d[5,1], D[5,4]+D[4,1]} = min{ 1, 1 2} = 3 17 Running Example (cont d) k=5(d[][] 값이갱신된것만 ) D D[1,2] = min{d[1,2], D[1,5]+D[5,2]} = min{4, 4 3} = 1 D[3,2] = min{d[3,2], D[3,5]+D[5,2]} = min{3, 2 3} = 1 D[4,2] = min{d[4,2], D[4,5]+D[5,2]} = min{2, 2 3} = 1 18

10 Running Example (cont d) Final All Pair Distances D Finding the Actual Shortest Path Maintain P[i][j] which stores the highest index of the intermediate vertices if one exists. Otherwise, 0 (i.e. initially 0). The Algorithm 1. for k = 1 to n 2. for i = 1 to n 3. for j = 1 to n 4. if ( D[i,k] + D[k,j] < D[i,j] ) { 5. D[i,j] = D[i,k] + D[k,j]; 6. P[i][j] = k; // 추가 7. } 20

11 Finding the Actual Shortest Path Example : A Path Printing Function 1. void path ( index q, index r ) { 2. if ( P[q][r]!= 0 ) { 3. path( q, P[q][r] ); // print intermediate vertices // between q and P[q][r]. 4. print P[q][r]; 5. path( P[q][r], r ); // print intermediate vertices 6. } // between q and P[q][r]. 7. } If we want to print the shortest path from u to w, print u; path (u, w); print w; 21 Floyd Algorithm 의응용 맵퀘스트 (Mapquest), 구글 (Google) 웹사이트의지도서비스 자동차네비게이션서비스 지리정보시스템 (GIS) 에서의네트워크분석 통신네트워크와모바일통신분야 게임 산업공학, 경영공학의 Operations Research ( 운영연구 ) 로봇공학 교통공학 VLSI 디자인분야등 22

12 Dynamic Programming and Optimization Problems Steps for an algorithm using dynamic programming Definition : The principle of optimality is said to apply in a problem if an optimal solution to an instance of a problem always contains optimal solutions to all substances. Shortest Path If P(s,t) is a shortest path, P(s,w) and P(w,t) are also shortest path. The reverse is not true. That is, there may be a shortest path which does not contain w. s w t 23 In order to apply the principle of optimality, we need to show that the principle holds before assuming that an optimal solution can be obtained using dynamic programming. The case when the principle of optimality does not hold Longest simple path problem [v1, v3, v2, v4] is the longest simple path. However, [v1, v3] is not a longest simple path. [v1, v2, v3] is the longest simple path. 24

13 Matrix Multiplication [n n] [n n] matrix multiplication Multiplication : T(n) = n 3. Addition : T(n) = n 3. n 3 n 2 after a slight modification of the algorithm. How? Using the Strassen s Algorithm (D&C), we can do this in O(n 2.81 ) multiplications and additions/subtractions. 25 [p q] [q r] matrix multiplication The result is [p r] matrix. Needs pqr multiplications by using normal multiplication. Example : [10 20] [20 5] = [10 5] Needs = 1,000 multiplications. 26

14 Associative Law ( 결합법칙 ) A B C=(A B) C=A (B C) Not Commutative A B B A Multiplications Reduction A B C=[10 20] [20 5] [5 15] (A B) C=[10 5] [5 15] = = 1750 multiplications. A (B C) = [10 20] [20 15] = = 4500 multiplications. 27 Chained Matrix Multiplication Problem 연속된행렬들의곱셈에필요한최소곱셈횟수및행렬간의곱셈순서를찾는문제. Example 가능한모든순서를체크하여최소곱셈수를찾는경우 needs exponential time. 28

15 The principle of optimality applies in this problem. Any sub-order of an optimal order is also optimal. If A 1 ((((A 2 A 3 )A 4 )A 5 )A 6 ) is an optimal order, (A 2 A 3 )A 4 is also an optimal order for multiplying A 2 A 3 A Sub-Instances ( 부분문제들 ) 가장작은크기의부분문제 참고사항 이웃하는 행렬끼리만 곱할 수 있다. 예를 들어 A B C D E 계산에,B를건너뛰어서 A C를수행하거나, B와 C를건너뛰어서 A D를먼저계산할수없다. 따라서, 크기가 2인부분문제들은인접한행렬간의곱이 며, 이들모두에대한곱셈수를계산해두어야한다. 30

16 크기가 3, 4, 5 인부분문제 A B C D E 은크기가 2, 3, 4 인부분문제들의일부를사용하여계산하여야한다. 31 Algorithm Design We are to compute A 1 A 2 A n. Assume that dimension of A k is d k 1 d k for 1 k n. We define C[i][j] as C[i][j] = A i 부터 A j 까지곱하기위한최소곱셈수 ( i< j 인경우만 ). C[i][i] = 0. Any multiplication order can be partitioned into two sub-orders. For example, there are 5 cases if n=6. Therefore, the following recursive property holds: The optimal order is one of these. min 1,, 0, for 1. 32

17 C[i][j] Calculation (Diagonal Order) Set C[0][0]=C[1][1]= =C[n][n] = 0. Obtain C[1][2], C[2][3],,C[n 1][n]. Obtain C[1][3], C[2][4],,C[n 2][n]. Obtain C[1][4], C[2][4],,C[n 3][n], etc. And finally we get C[1][n]. L Diagonal order L = 1, 2,, n 1. For each L, calculate C[1][1+L], C[2][2+L],,C[i][j=i+L],, C[n L][n]. For C[i][j], we need k (= i to j 1), because min 1,. 33 More on Indexing L=1일때, i=1: j=i+l=1+1=2(a 1 A 2 를계산하기위하여 ), i=2: j=2+1=3(a 2 A 3 을계산하기위하여 ), i=n L =n 1: j = (n 1) + 1 = n (A n 1 A n 을계산하기위하여 ) 크기가 2인부분문제의수 :(n 1) 개. L=2 일때, i=1: j=i+l=1+2 = 3 (A 1 A 2 A 3 을계산하기위하여 ), i=2: j=2+2=4(a 2 A 3 A 4 를계산하기위하여 ), i=n L =n 2: j = (n 2)+2=n(A n 2 A n 1 A n 을계산하기위해 ) 크기 3인부분문제의수 :(n 2) 개 34

18 L=3 일때 A 1 A 2 A 3 A 4,A 2 A 3 A 4 A 5,,A n 3 A n 2 A n 1 A n 등을계산. 크기가 4인부분문제의수가 (n 3) 개 L=n 2 일때 2 개의부분문제 A 1 A 2... A n 1,A 2 A 3... A n 을계산. L=n 1 일때 i=1 이면 j=1+(n 1) = n 이므로, 주어진문제 A 1 A 2... A n 을계산. 35 Finding Minimum min 1,. 함축적순서 36

19 Algorithm 입력 :A 1 A 2 A n, where the dimension of A i is d i-1 d i,1 i n. 출력 : 입력의행렬곱셈에필요한원소의최소곱셈횟수. 1. for i=1ton 2. C[i,i] = 0 ; // initialization 3. for L=1ton 1 { // diagonal loop. 4. for i=1ton L { 5. j = i + L; 6. C[i,j] = ; 7. for k=itoj 1 { 8. temp = C[i,k] + C[k+1,j] + d i-1 d k d j ; 9. if (temp < C[i,j]) 10. C[i,j] = temp; } } } 11. return C[1,n]; 37 Time Complexity 3. for L=1ton 1 { // n 1 iterations 4. for i=1ton L { // n 1, n 2,, 2, 1 iterations 5. j=i+l; 6. C[i,j] = ; 7. for k=itoj 1 { // L iterations (1, 2,, n 1) 8. temp = C[i,k] + C[k+1,j] + d i-1 d k d j ; 9. if (temp < C[i,j]) 10. C[i,j] = temp; } } } 11. return C[1,n]; Lines 3~10 s total iterations n 1+2(n 2)+3(n 3)+ +(n 2)2+n 1= = = 1 / /6= /6 /3 /3 1 =O(n 3 ). 38

20 Printing the Optimal Order Maintain P[i,j] which stores the value of k that give minimum. Initially, P[i,j] = 0. The Algorithm 3. for L=1ton 1 { 4. for i=1ton L { 5. j = i + L; 6. C[i,j] = ; 7. for k=itoj 1 { 8. temp = C[i,k] + C[k+1,j] + d i-1 d k d j ; 9. if (temp < C[i,j]) 10. C[i,j] = temp; P[i,j] = k; } } } 11. return C[1,n]; 39 If P[i,j] = k, the order will be (A i,, A k )(A k+1,, A j ). Therefore we may use the following procedure: void order ( index i, index j ) { // T(n)= (n). if ( i == j ) print Ai ; // print Ai else { k = P[i, j]; print ( ; // print ( order ( i, k ); // print the first partition order ( k+1, j ); // print the second partition print ) ; // print ) } 40

21 Edit Distance ( 편집거리문제 ) 문서편집기를사용하는중에하나의스트링 (string, 문자열 ) S를수정하여다른스트링 T로변환시키고자한다. 이변환을위하여삽입 (insert), 삭제 (delete), 대체 (substitute) 등의연산을사용할수있다. Edit Distance ( 편집거리 ) S를 T로변환시키는데필요한최소의편집연산횟수. Example : S = strong, T = stone Edit distance is 4. Is this optimal? 41 Example : S = strong, T = stone Edit distance is 4. Edit distance is 2. 42

22 The Principle of Optimality An Example with Minimum Edit Distance (=5) d : deletion s : substitution i : insertion Edit distance from INTE to EXEC above is optimal. Otherwise, there would be smaller edit distance, which results in smaller total edit distance than 5. Therefore, we can informally say that the problem of finding the minimum edit distance satisfies the principle of optimality. 43 Sub-Instances ( 부분문제 ) strong 을 stone 으로편집하고자한다. 만일각접두부 (prefix) 에대해서, 예를들어, stro 를 sto 로편집할때의편집거리를미리알고있으면, 각스트링의나머지부분에대해서, 즉, ng 를 ne 로의편집에대해서편집거리를찾음으로써, 주어진입력에대한편집거리를구할수있다. 44

23 스트링 S 와 T 의길이가각각 m 과 n 이라하고,S 와 T 의각문자를 s i 와 t j 라고하자 (i = 1, 2,, m, and j = 1, 2,,n). S=s 1 s 2 T=t 1 t 2 s i s m t j t n E[i, j] 를 S 의접두부의 i 개문자를 T 의접두부 j 개문자로변환시키는데필요한최소 edit distance 라고하자. Example : S = strong, T = stone E[2, 0] = st 를 null string으로바꾸기위한최소편집거리. E[0, 3] = null string을 sto 로바꾸기위한최소편집거리. E[2,0] = 2 (deletion 두번 ), E[0,3] = 3 이다 (insertion 세번 ). E[4, 3] = stro 를 sto 로바꾸기위한최소편집거리. E[6, 5] = S를 T로바꾸기위한최소편집거리. 45 Algorithm Design Example E[i, 0] = i and E[0, j] = j. E[1,1] = 0. No operation is needed ( s s ). E[1,2] = 1. One insertion is needed ( s st ). E[2,1] = 1. One deletion is needed ( st s ). E[2,2] = 0. No operation is needed ( st st ). 다음과같은세경우중하나 ( 최소값 ) 로생각할수있다. s st 수행후 s 2 = t 삭제. E[1,2] + 1 = 2. st s 수행후 t 2 = t 삽입. E[2,1] + 1 = 2. s s 수행후 no operation(s 2 =t 2 이므로 ). E[0,0] + 0 = 0. 46

24 Algorithm Design (cont d) E[4,3] ( 즉, stro sto 를위한최소편집거리 ) 세가지경우를생각할수있다. stro st 를수행하고,t 3 = o 추가. E[4,2] + 1. str sto 를수행하고,s 4 = o 삭제. E[3,3] + 1. str st 를수행하고, t4 = s3 이면 no operation. E[3,2] + 0. t4 s3 이면 substitution. E[3,2] + 1 ( 이예는해당안됨 ). 따라서, E[4,3] = min{e[4,2]+1, E[3,3]+1, E[3,2]+ (=0)}. 결론적으로, E[4,2], E[3,3], E[3,2] 를미리계산해두면 E[4,3] 를계산할수있다. 47 일반적으로 E[i 1,j],E[i,j 1], E[i 1, j 1] 의해가미리계산되어있으면 E[i, j] 를계산할수있으며, 다음과같이부분문제간의함축적인순서가있다. Recursive Property E[i, 0] = i, E[0, j] = j for i = 0, 1,, m and j = 0, 1,, n. Fori=1,2,,mandj=1,2,,n, E[i, j] = min {E[i 1, j] + 1,E[i,j 1] + 1,E[i,j]+ }, where =1ifs i t j,0otherwise. Insertion, deletion, substitution cost가각각다를경우위식에각operation에대응하는 cost로바꿔준다. 48

25 Indexing For E[i, j], we need E[i 1, j], E[i, j 1] and E[i, j]. Therefore, indexing by row-wise order is enough i E T ε s j t o n e S ε s 1 1 t 2 2 (i-1, j-1) (i-1, j) r 3 3 (i, j-1) (i, j) o 4 4 n 5 5 g 6 6 : empty string 49 Algorithm 입력 : 스트링 S, T, 단,S와T의길이는각각 m과 n이다. 출력 :S를T로변환하는편집거리, E[m,n] 1. for i=0 to m E[i,0]=i ; // 0번열의초기화 2. for j=0 to n E[0,j]=j ; // 0번행의초기화 3. for i=1 to m 4. for j=1 to n 5. E[i, j] = min{e[i, j 1]+1, E[i 1, j]+1, E[i 1, j 1]+α} 6. return E[m,n] Time Complexity = O(nm). 50

26 Example E T ε s t o n e S ε s i t r 3 3 2? o 4 4 n 5 5 g 6 6 j Since s 3 (= r ) t 2 (= t ), α =1. E[3, 2] = min{e[3, 1]+1, E[2, 2]+1, E[2, 1]+α} = min{3, 1, 2} =1=E[2, 2] + 1 (i.e., delete s 3 (= r )). 51 Finding the Operations Operation applied can be obtained by backtracking. Final Result of Our Example E T ε s t o n e j S i ε s t r o n g if α = 1 substitute t j else nop delete s i (i-1,j-1) (i-1,j) (i,j-1) insert t i minimum edit distance (i,j) 52

27 At (6, 5) α = 1, and hence E[6,5]=min{ 3, 3, 2 } Therefore, E[6,5] is from E[5,4] substitution ( g e ) E T ε s t o n e j S i ε s t r o n g if α = 1 substitute t j else nop delete s i (i-1,j-1) (i-1,j) (i,j-1) insert t i minimum edit distance (i,j) 53 At (5, 4) α = 0, and hence E[5,4]=min{ 3, 3, 1 } Therefore, E[5,4] is from E[4,3] no operation. E T ε s t o n e j S i ε s t r o n g At (4, 3) : no operation if α = 1 substitute t j else nop delete s i (i-1,j-1) (i-1,j) (i,j-1) insert t i (i,j) 54

28 At (3, 2) α = 1, and hence E[3,2]=min{ 3, 1, 2 } Therefore, E[3,2] is from E[2,2] delete s 3 = r. E T ε s t o n e j S i ε s t r o n g if α = 1 substitute t j else nop delete s i (i-1,j-1) (i-1,j) (i,j-1) insert t i (i,j) 55 At (2, 2) α = 0, and hence E[2,2]=min{ 2, 2, 0 } Therefore, E[2,2] is from E[1,1] no operation E T ε s t o n e j S i ε s t r o n g At (1, 1), no operation. if α = 1 substitute t j else nop delete s i (i-1,j-1) (i-1,j) (i,j-1) insert t i (i,j) 56

29 Edit Distance Problem 의응용 2개의스트링사이의편집거리가작으면, 이스트링들이서로유사하다고판단할수있으므로, 생물정보공학 (Bioinformatics) 및의학분야에서두개의유전자가얼마나유사한가를측정하는데활용된다. 철자오류검색 (Spell Checker), 광학문자인식 (Optical Character Recognition) 에서의보정시스템 (Correction System), 자연어번역 (Natural Language Translation) 소프트웨어등에도활용된다. 57

Let G = (V, E) be a connected, undirected graph with a real-valued weight function w defined on E. Let A be a set of E, possibly empty, that is includ

Let G = (V, E) be a connected, undirected graph with a real-valued weight function w defined on E. Let A be a set of E, possibly empty, that is includ 알고리즘설계와분석 (CSE3081(2 반 )) 기말고사 (2016년 12월15일 ( 목 ) 오전 9시40분 ~) 담당교수 : 서강대학교컴퓨터공학과임인성 < 주의 > 답안지에답을쓴후제출할것. 만약공간이부족하면답안지의뒷면을이용하고, 반드시답을쓰는칸에어느쪽의뒷면에답을기술하였는지명시할것. 연습지는수거하지않음. function MakeSet(x) { x.parent

More information

Microsoft PowerPoint - ch03ysk2012.ppt [호환 모드]

Microsoft PowerPoint - ch03ysk2012.ppt [호환 모드] 전자회로 Ch3 iode Models and Circuits 김영석 충북대학교전자정보대학 2012.3.1 Email: kimys@cbu.ac.kr k Ch3-1 Ch3 iode Models and Circuits 3.1 Ideal iode 3.2 PN Junction as a iode 3.4 Large Signal and Small-Signal Operation

More information

Line (A) å j a k= i k #define max(a, b) (((a) >= (b))? (a) : (b)) long MaxSubseqSum0(int A[], unsigned Left, unsigned Right) { int Center, i; long Max

Line (A) å j a k= i k #define max(a, b) (((a) >= (b))? (a) : (b)) long MaxSubseqSum0(int A[], unsigned Left, unsigned Right) { int Center, i; long Max 알고리즘설계와분석 (CSE3081-2반 ) 중간고사 (2013년 10월24일 ( 목 ) 오전 10시30분 ) 담당교수 : 서강대학교컴퓨터공학과임인성수강학년 : 2학년문제 : 총 8쪽 12문제 ========================================= < 주의 > 답안지에답을쓴후제출할것. 만약공간이부족하면답안지의뒷면을이용하고반드시답을쓰는칸에답안지의어느쪽의뒷면에답을기술하였는지명시할것.

More information

예제 1.1 ( 관계연산자 ) >> A=1:9, B=9-A A = B = >> tf = A>4 % 4 보다큰 A 의원소들을찾을경우 tf = >> tf = (A==B) % A

예제 1.1 ( 관계연산자 ) >> A=1:9, B=9-A A = B = >> tf = A>4 % 4 보다큰 A 의원소들을찾을경우 tf = >> tf = (A==B) % A 예제 1.1 ( 관계연산자 ) >> A=1:9, B=9-A A = 1 2 3 4 5 6 7 8 9 B = 8 7 6 5 4 3 2 1 0 >> tf = A>4 % 4 보다큰 A 의원소들을찾을경우 tf = 0 0 0 0 1 1 1 1 1 >> tf = (A==B) % A 의원소와 B 의원소가똑같은경우를찾을때 tf = 0 0 0 0 0 0 0 0 0 >> tf

More information

슬라이드 제목 없음

슬라이드 제목 없음 물리화학 1 문제풀이 130403 김대형교수님 Chapter 1 Exercise (#1) A sample of 255 mg of neon occupies 3.00 dm 3 at 122K. Use the perfect gas law to calculate the pressure of the gas. Solution 1) The perfect gas law p

More information

#Ȳ¿ë¼®

#Ȳ¿ë¼® http://www.kbc.go.kr/ A B yk u δ = 2u k 1 = yk u = 0. 659 2nu k = 1 k k 1 n yk k Abstract Web Repertoire and Concentration Rate : Analysing Web Traffic Data Yong - Suk Hwang (Research

More information

Chap 6: Graphs

Chap 6: Graphs 5. 작업네트워크 (Activity Networks) 작업 (Activity) 부분프로젝트 (divide and conquer) 각각의작업들이완료되어야전체프로젝트가성공적으로완료 두가지종류의네트워크 Activity on Vertex (AOV) Networks Activity on Edge (AOE) Networks 6 장. 그래프 (Page 1) 5.1 AOV

More information

public key private key Encryption Algorithm Decryption Algorithm 1

public key private key Encryption Algorithm Decryption Algorithm 1 public key private key Encryption Algorithm Decryption Algorithm 1 One-Way Function ( ) A function which is easy to compute in one direction, but difficult to invert - given x, y = f(x) is easy - given

More information

Chap 6: Graphs

Chap 6: Graphs 그래프표현법 인접행렬 (Adjacency Matrix) 인접리스트 (Adjacency List) 인접다중리스트 (Adjacency Multilist) 6 장. 그래프 (Page ) 인접행렬 (Adjacency Matrix) n 개의 vertex 를갖는그래프 G 의인접행렬의구성 A[n][n] (u, v) E(G) 이면, A[u][v] = Otherwise, A[u][v]

More information

chap 5: Trees

chap 5: Trees 5. Threaded Binary Tree 기본개념 n 개의노드를갖는이진트리에는 2n 개의링크가존재 2n 개의링크중에 n + 1 개의링크값은 null Null 링크를다른노드에대한포인터로대체 Threads Thread 의이용 ptr left_child = NULL 일경우, ptr left_child 를 ptr 의 inorder predecessor 를가리키도록변경

More information

본문01

본문01 Ⅱ 논술 지도의 방법과 실제 2. 읽기에서 논술까지 의 개발 배경 읽기에서 논술까지 자료집 개발의 본래 목적은 초 중 고교 학교 평가에서 서술형 평가 비중이 2005 학년도 30%, 2006학년도 40%, 2007학년도 50%로 확대 되고, 2008학년도부터 대학 입시에서 논술 비중이 커지면서 논술 교육은 학교가 책임진다. 는 풍토 조성으로 공교육의 신뢰성과

More information

<3130C0E5>

<3130C0E5> Redundancy Adding extra bits for detecting or correcting errors at the destination Types of Errors Single-Bit Error Only one bit of a given data unit is changed Burst Error Two or more bits in the data

More information

슬라이드 제목 없음

슬라이드 제목 없음 2006-09-27 경북대학교컴퓨터공학과 1 제 5 장서브넷팅과슈퍼넷팅 서브넷팅 (subnetting) 슈퍼넷팅 (Supernetting) 2006-09-27 경북대학교컴퓨터공학과 2 서브넷팅과슈퍼넷팅 서브넷팅 (subnetting) 하나의네트워크를여러개의서브넷 (subnet) 으로분할 슈퍼넷팅 (supernetting) 여러개의서브넷주소를결합 The idea

More information

歯kjmh2004v13n1.PDF

歯kjmh2004v13n1.PDF 13 1 ( 24 ) 2004 6 Korean J Med Hist 13 1 19 Jun 2004 ISSN 1225 505X 1) * * 1 ( ) 2) 3) 4) * 1) ( ) 3 2) 7 1 3) 2 1 13 1 ( 24 ) 2004 6 5) ( ) ( ) 2 1 ( ) 2 3 2 4) ( ) 6 7 5) - 2003 23 144-166 2 2 1) 6)

More information

Chap 6: Graphs

Chap 6: Graphs AOV Network 의표현 임의의 vertex 가 predecessor 를갖는지조사 각 vertex 에대해 immediate predecessor 의수를나타내는 count field 저장 Vertex 와그에부속된모든 edge 들을삭제 AOV network 을인접리스트로표현 count link struct node { int vertex; struct node

More information

- 2 -

- 2 - - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 -

More information

I

I I II III (C B ) (C L ) (HL) Min c ij x ij f i y i i H j H i H s.t. y i 1, k K, i W k C B C L p (HL) x ij y i, i H, k K i, j W k x ij y i {0,1}, i, j H. K W k k H K i i f i i d ij i j r ij i j c ij r ij

More information

04-다시_고속철도61~80p

04-다시_고속철도61~80p Approach for Value Improvement to Increase High-speed Railway Speed An effective way to develop a highly competitive system is to create a new market place that can create new values. Creating tools and

More information

Page 2 of 5 아니다 means to not be, and is therefore the opposite of 이다. While English simply turns words like to be or to exist negative by adding not,

Page 2 of 5 아니다 means to not be, and is therefore the opposite of 이다. While English simply turns words like to be or to exist negative by adding not, Page 1 of 5 Learn Korean Ep. 4: To be and To exist Of course to be and to exist are different verbs, but they re often confused by beginning students when learning Korean. In English we sometimes use the

More information

λx.x (λz.λx.x z) (λx.x)(λz.(λx.x)z) (λz.(λx.x) z) Call-by Name. Normal Order. (λz.z)

λx.x (λz.λx.x z) (λx.x)(λz.(λx.x)z) (λz.(λx.x) z) Call-by Name. Normal Order. (λz.z) λx.x (λz.λx.x z) (λx.x)(λz.(λx.x)z) (λz.(λx.x) z) Call-by Name. Normal Order. (λz.z) Simple Type System - - 1+malloc(), {x:=1,y:=2}+2,... (stuck) { } { } ADD σ,m e 1 n 1,M σ,m e 1 σ,m e 2 n 2,M + e 2 n

More information

2002년 2학기 자료구조

2002년 2학기 자료구조 자료구조 (Data Structures) Chapter 1 Basic Concepts Overview : Data (1) Data vs Information (2) Data Linear list( 선형리스트 ) - Sequential list : - Linked list : Nonlinear list( 비선형리스트 ) - Tree : - Graph : (3)

More information

sna-node-ties

sna-node-ties Node Centrality in Social Networks Nov. 2015 Youn-Hee Han http://link.koreatech.ac.kr Importance of Nodes ² Question: which nodes are important among a large number of connected nodes? Centrality analysis

More information

204 205

204 205 -Road Traffic Crime and Emergency Evacuation - 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 Abstract Road Traffic Crime

More information

Microsoft PowerPoint - 27.pptx

Microsoft PowerPoint - 27.pptx 이산수학 () n-항관계 (n-ary Relations) 2011년봄학기 강원대학교컴퓨터과학전공문양세 n-ary Relations (n-항관계 ) An n-ary relation R on sets A 1,,A n, written R:A 1,,A n, is a subset R A 1 A n. (A 1,,A n 에대한 n- 항관계 R 은 A 1 A n 의부분집합이다.)

More information

大学4年生の正社員内定要因に関する実証分析

大学4年生の正社員内定要因に関する実証分析 190 2016 JEL Classification Number J24, I21, J20 Key Words JILPT 2011 1 190 Empirical Evidence on the Determinants of Success in Full-Time Job-Search for Japanese University Students By Hiroko ARAKI and

More information

OR MS와 응용-03장

OR MS와 응용-03장 o R M s graphical solution algebraic method ellipsoid algorithm Karmarkar 97 George B Dantzig 979 Khachian Karmarkar 98 Karmarkar interior-point algorithm o R 08 gallon 000 000 00 60 g 0g X : : X : : Ms

More information

, ( ) 1) *.. I. (batch). (production planning). (downstream stage) (stockout).... (endangered). (utilization). *

, ( ) 1) *.. I. (batch). (production planning). (downstream stage) (stockout).... (endangered). (utilization). * , 40 12 (2006 6) 1) *.. I. (batch). (production planning). (downstream stage) (stockout).... (endangered). (utilization). * 40, 40 12 (EPQ; economic production quantity). (setup cost) (setup time) Bradley

More information

<31342D3034C0E5C7FDBFB52E687770>

<31342D3034C0E5C7FDBFB52E687770> 아카데미 토론 평가에 대한 재고찰 - 토론승패와 설득은 일치하는가 - 장혜영 (명지대) 1. 들어가는 말 토론이란 무엇일까? 토론에 대한 정의는 매우 다양하다. 안재현 과 오창훈은 토론에 대한 여러 정의들을 검토한 후 이들을 종합하 여 다음과 같이 설명하고 있다. 토론이란 주어진 주제에 대해 형 식과 절차에 따라 각자 자신의 의견을 합리적으로 주장하여 상대

More information

chap x: G입력

chap x: G입력 재귀알고리즘 (Recursive Algorithms) 재귀알고리즘의특징 문제자체가재귀적일경우적합 ( 예 : 피보나치수열 ) 이해하기가용이하나, 비효율적일수있음 재귀알고리즘을작성하는방법 재귀호출을종료하는경계조건을설정 각단계마다경계조건에접근하도록알고리즘의재귀호출 재귀알고리즘의두가지예 이진검색 순열 (Permutations) 1 장. 기본개념 (Page 19) 이진검색의재귀알고리즘

More information

04 형사판례연구 19-3-1.hwp

04 형사판례연구 19-3-1.hwp 2010년도 형법판례 회고 645 2010년도 형법판례 회고 2)오 영 근* Ⅰ. 서설 2010. 1. 1.에서 2010. 12. 31.까지 대법원 법률종합정보 사이트 1) 에 게재된 형법 및 형사소송법 판례는 모두 286건이다. 이 중에는 2건의 전원합의체 판결 및 2건의 전원합의체 결정이 있다. 2건의 전원합의체 결정은 형사소송법에 관한 것이고, 2건의

More information

chap01_time_complexity.key

chap01_time_complexity.key 1 : (resource),,, 2 (time complexity),,, (worst-case analysis) (average-case analysis) 3 (Asymptotic) n growth rate Θ-, Ο- ( ) 4 : n data, n/2. int sample( int data[], int n ) { int k = n/2 ; return data[k]

More information

Chapter 4. LISTS

Chapter 4. LISTS C 언어에서리스트구현 리스트의생성 struct node { int data; struct node *link; ; struct node *ptr = NULL; ptr = (struct node *) malloc(sizeof(struct node)); Self-referential structure NULL: defined in stdio.h(k&r C) or

More information

09김정식.PDF

09김정식.PDF 00-09 2000. 12 ,,,,.,.,.,,,,,,.,,..... . 1 1 7 2 9 1. 9 2. 13 3. 14 3 16 1. 16 2. 21 3. 39 4 43 1. 43 2. 52 3. 56 4. 66 5. 74 5 78 1. 78 2. 80 3. 86 6 88 90 Ex e cu t iv e Su m m a r y 92 < 3-1> 22 < 3-2>

More information

쉽게배우는알고리즘 8장. 동적프로그래밍 프로그래밍 Dynamic Programming (DP)

쉽게배우는알고리즘 8장. 동적프로그래밍 프로그래밍 Dynamic Programming (DP) 쉽게배우는알고리즘 8장. 동적프로그래밍 프로그래밍 Dynamic Programming (DP) http://academy.hanb.co.kr IT COOKBOOK 8장. 동적프로그래밍 Dynamic Programming (DP) 계시란바깥어딘가에서우리한테갑자기주어지는객관적지식이아니다. 만물의근원에대한본질적인귀속감, 우리가거기에아주밀접하게닿아있다는관계성을스스로가발견해내는것이계시다.

More information

Gray level 변환 및 Arithmetic 연산을 사용한 영상 개선

Gray level 변환 및 Arithmetic 연산을 사용한 영상 개선 Point Operation Histogram Modification 김성영교수 금오공과대학교 컴퓨터공학과 학습내용 HISTOGRAM HISTOGRAM MODIFICATION DETERMINING THRESHOLD IN THRESHOLDING 2 HISTOGRAM A simple datum that gives the number of pixels that a

More information

Problem New Case RETRIEVE Learned Case Retrieved Cases New Case RETAIN Tested/ Repaired Case Case-Base REVISE Solved Case REUSE Aamodt, A. and Plaza, E. (1994). Case-based reasoning; Foundational

More information

6자료집최종(6.8))

6자료집최종(6.8)) Chapter 1 05 Chapter 2 51 Chapter 3 99 Chapter 4 151 Chapter 1 Chapter 6 7 Chapter 8 9 Chapter 10 11 Chapter 12 13 Chapter 14 15 Chapter 16 17 Chapter 18 Chapter 19 Chapter 20 21 Chapter 22 23 Chapter

More information

0125_ 워크샵 발표자료_완성.key

0125_ 워크샵 발표자료_완성.key WordPress is a free and open-source content management system (CMS) based on PHP and MySQL. WordPress is installed on a web server, which either is part of an Internet hosting service or is a network host

More information

Microsoft PowerPoint - 26.pptx

Microsoft PowerPoint - 26.pptx 이산수학 () 관계와그특성 (Relations and Its Properties) 2011년봄학기 강원대학교컴퓨터과학전공문양세 Binary Relations ( 이진관계 ) Let A, B be any two sets. A binary relation R from A to B, written R:A B, is a subset of A B. (A 에서 B 로의이진관계

More information

서강대학교공과대학컴퓨터공학과 (1/5) CSE3081 (2 반 ): 알고리즘설계와분석 < 프로그래밍숙제 2> (v_1.0) 담당교수 : 임인성 2015 년 10 월 13 일 마감 : 10 월 31 일토요일오후 8 시정각 제출물, 제출방법, LATE 처리방법등 : 조교가

서강대학교공과대학컴퓨터공학과 (1/5) CSE3081 (2 반 ): 알고리즘설계와분석 < 프로그래밍숙제 2> (v_1.0) 담당교수 : 임인성 2015 년 10 월 13 일 마감 : 10 월 31 일토요일오후 8 시정각 제출물, 제출방법, LATE 처리방법등 : 조교가 서강대학교공과대학컴퓨터공학과 (/5) CSE08 ( 반 ): 알고리즘설계와분석 < 프로그래밍숙제 > (v_.0) 담당교수 : 임인성 05 년 0 월 일 마감 : 0 월 일토요일오후 8 시정각 제출물, 제출방법, LATE 처리방법등 : 조교가과목게시판에공고할예정임. 목표 : 주어진문제에대한분석을통하여 optimal substructure 를유추하고, 이를 bottom-up

More information

Columns 8 through while expression {commands} 예제 1.2 (While 반복문의이용 ) >> num=0

Columns 8 through while expression {commands} 예제 1.2 (While 반복문의이용 ) >> num=0 for loop array {commands} 예제 1.1 (For 반복변수의이용 ) >> data=[3 9 45 6; 7 16-1 5] data = 3 9 45 6 7 16-1 5 >> for n=data x=n(1)-n(2) -4-7 46 1 >> for n=1:10 x(n)=sin(n*pi/10); n=10; >> x Columns 1 through 7

More information

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for 2003 Development of the Software Generation Method using Model Driven Software Engineering Tool,,,,, Hoon-Seon Chang, Jae-Cheon Jung, Jae-Hack Kim Hee-Hwan Han, Do-Yeon Kim, Young-Woo Chang Wang Sik, Moon

More information

Microsoft PowerPoint Relations.pptx

Microsoft PowerPoint Relations.pptx 이산수학 () 관계와그특성 (Relations and Its Properties) 2010년봄학기강원대학교컴퓨터과학전공문양세 Binary Relations ( 이진관계 ) Let A, B be any two sets. A binary relation R from A to B, written R:A B, is a subset of A B. (A 에서 B 로의이진관계

More information

¹Ìµå¹Ì3Â÷Àμâ

¹Ìµå¹Ì3Â÷Àμâ MIDME LOGISTICS Trusted Solutions for 02 CEO MESSAGE MIDME LOGISTICS CO., LTD. 01 Ceo Message We, MIDME LOGISTICS CO., LTD. has established to create aduance logistics service. Try to give confidence to

More information

Page 2 of 6 Here are the rules for conjugating Whether (or not) and If when using a Descriptive Verb. The only difference here from Action Verbs is wh

Page 2 of 6 Here are the rules for conjugating Whether (or not) and If when using a Descriptive Verb. The only difference here from Action Verbs is wh Page 1 of 6 Learn Korean Ep. 13: Whether (or not) and If Let s go over how to say Whether and If. An example in English would be I don t know whether he ll be there, or I don t know if he ll be there.

More information

5.스택(강의자료).key

5.스택(강의자료).key CHP 5: https://www.youtube.com/watch?v=ns-r91557ds ? (stack): (LIFO:Last-In First-Out):. D C B C B C B C B (element) C (top) B (bottom) (DT) : n element : create() ::=. is_empty(s) ::=. is_full(s) ::=.

More information

DBPIA-NURIMEDIA

DBPIA-NURIMEDIA 방송통신연구 2011년 봄호 연구논문 64 98 PD수첩 관련 판례에서 보이는 사법부의 사실성에 대한 인식의 차이 연구* 1)2) 이승선 충남대학교 언론정보학과 부교수** Contents 1. 문제제기와 연구문제 2. 공적인물에 대한 명예훼손 보도의 면책 법리 3. 분석결과의 논의 4. 마무리 본 이른바 PD수첩 광우병 편 에 대해 다양한 법적 대응이 이뤄졌다.

More information

http://www.kbc.go.kr/pds/2.html Abstract Exploring the Relationship Between the Traditional Media Use and the Internet Use Mee-Eun Kang This study examines the relationship between

More information

<313120C0AFC0FCC0DA5FBECBB0EDB8AEC1F2C0BB5FC0CCBFEBC7D15FB1E8C0BAC5C25FBCF6C1A42E687770>

<313120C0AFC0FCC0DA5FBECBB0EDB8AEC1F2C0BB5FC0CCBFEBC7D15FB1E8C0BAC5C25FBCF6C1A42E687770> 한국지능시스템학회 논문지 2010, Vol. 20, No. 3, pp. 375-379 유전자 알고리즘을 이용한 강인한 Support vector machine 설계 Design of Robust Support Vector Machine Using Genetic Algorithm 이희성 홍성준 이병윤 김은태 * Heesung Lee, Sungjun Hong,

More information

step 1-1

step 1-1 Written by Dr. In Ku Kim-Marshall STEP BY STEP Korean 1 through 15 Action Verbs Table of Contents Unit 1 The Korean Alphabet, hangeul Unit 2 Korean Sentences with 15 Action Verbs Introduction Review Exercises

More information

歯1.PDF

歯1.PDF 200176 .,.,.,. 5... 1/2. /. / 2. . 293.33 (54.32%), 65.54(12.13%), / 53.80(9.96%), 25.60(4.74%), 5.22(0.97%). / 3 S (1997)14.59% (1971) 10%, (1977).5%~11.5%, (1986)

More information

WHO 의새로운국제장애분류 (ICF) 에대한이해와기능적장애개념의필요성 ( 황수경 ) ꌙ 127 노동정책연구 제 4 권제 2 호 pp.127~148 c 한국노동연구원 WHO 의새로운국제장애분류 (ICF) 에대한이해와기능적장애개념의필요성황수경 *, (disabi

WHO 의새로운국제장애분류 (ICF) 에대한이해와기능적장애개념의필요성 ( 황수경 ) ꌙ 127 노동정책연구 제 4 권제 2 호 pp.127~148 c 한국노동연구원 WHO 의새로운국제장애분류 (ICF) 에대한이해와기능적장애개념의필요성황수경 *, (disabi WHO 의새로운국제장애분류 (ICF) 에대한이해와기능적장애개념의필요성 ( 황수경 ) ꌙ 127 노동정책연구 2004. 제 4 권제 2 호 pp.127~148 c 한국노동연구원 WHO 의새로운국제장애분류 (ICF) 에대한이해와기능적장애개념의필요성황수경 *, (disability)..,,. (WHO) 2001 ICF. ICF,.,.,,. (disability)

More information

74 현대정치연구 2015년 봄호(제8권 제1호) Ⅰ. 서론 2015년 1월 7일, 프랑스 파리에서 총격 사건이 발생했다. 두 명의 남성이 풍자 잡지 주간 샤를리 의 본사에 침입하여 총기를 난사한 것이다. 이 사건으로 인해 열두 명의 사람이 목숨을 잃었다. 얼마 후에

74 현대정치연구 2015년 봄호(제8권 제1호) Ⅰ. 서론 2015년 1월 7일, 프랑스 파리에서 총격 사건이 발생했다. 두 명의 남성이 풍자 잡지 주간 샤를리 의 본사에 침입하여 총기를 난사한 것이다. 이 사건으로 인해 열두 명의 사람이 목숨을 잃었다. 얼마 후에 테러와 테러리즘: 정치적 폭력의 경제와 타락에 관하여 73 테러와 테러리즘: 정치적 폭력의 경제와 타락에 관하여* 1) 공진성 조선대학교 국문요약 테러는 왜 궁극적으로 성공하지 못하며, 성공하지 못하는 테러를 사람들은 왜 자꾸 하는 걸까? 우리 시대의 안타까운 현상의 원인을 파악하기 위해서는 권력과 폭력의 관계를, 그리고 정치적 폭력이 가지는 테러적 속성을

More information

- iii - - i - - ii - - iii - 국문요약 종합병원남자간호사가지각하는조직공정성 사회정체성과 조직시민행동과의관계 - iv - - v - - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - - 14 - α α α α - 15 - α α α α α α

More information

지능정보연구제 16 권제 1 호 2010 년 3 월 (pp.71~92),.,.,., Support Vector Machines,,., KOSPI200.,. * 지능정보연구제 16 권제 1 호 2010 년 3 월

지능정보연구제 16 권제 1 호 2010 년 3 월 (pp.71~92),.,.,., Support Vector Machines,,., KOSPI200.,. * 지능정보연구제 16 권제 1 호 2010 년 3 월 지능정보연구제 16 권제 1 호 2010 년 3 월 (pp.71~92),.,.,., Support Vector Machines,,., 2004 5 2009 12 KOSPI200.,. * 2009. 지능정보연구제 16 권제 1 호 2010 년 3 월 김선웅 안현철 社 1), 28 1, 2009, 4. 1. 지능정보연구제 16 권제 1 호 2010 년 3 월 Support

More information

Chapter 4. LISTS

Chapter 4. LISTS 6. 동치관계 (Equivalence Relations) 동치관계 reflexive, symmetric, transitive 성질을만족 "equal to"(=) 관계는동치관계임. x = x x = y 이면 y = x x = y 이고 y = z 이면 x = z 동치관계를이용하여집합 S 를 동치클래스 로분할 동일한클래스내의원소 x, y 에대해서는 x y 관계성립

More information

High Resolution Disparity Map Generation Using TOF Depth Camera In this paper, we propose a high-resolution disparity map generation method using a lo

High Resolution Disparity Map Generation Using TOF Depth Camera In this paper, we propose a high-resolution disparity map generation method using a lo High Resolution Disparity Map Generation Using TOF Depth Camera In this paper, we propose a high-resolution disparity map generation method using a low-resolution Time-Of- Flight (TOF) depth camera and

More information

Journal of Educational Innovation Research 2019, Vol. 29, No. 1, pp DOI: (LiD) - - * Way to

Journal of Educational Innovation Research 2019, Vol. 29, No. 1, pp DOI:   (LiD) - - * Way to Journal of Educational Innovation Research 2019, Vol. 29, No. 1, pp.353-376 DOI: http://dx.doi.org/10.21024/pnuedi.29.1.201903.353 (LiD) -- * Way to Integrate Curriculum-Lesson-Evaluation using Learning-in-Depth

More information

歯49손욱.PDF

歯49손욱.PDF 2002 14 C Inventory An Estimation of 14 C Inventory on Each Unit of Wolsong NPP,,, 103-16 14 C 14 C Inventory 14 C Inventory 14 C 14 C, [Inventory] = [ 14 C ] - [ 14 C ] 14 C 14 C 13 C, 14 N 17 O [ 13

More information

음주측정을 위한 긴급강제채혈의 절차와 법리, A Study on the Urgent Compulsory Blood

음주측정을 위한 긴급강제채혈의 절차와 법리, A Study on the Urgent Compulsory Blood 음주측정을 위한 긴급강제채혈의 절차와 법리 A Study on the Urgent Compulsory Blood Collecting for Investigation of Driving while Intoxicated 양 동 철 * (Yang, Dong-Chul) < 차 례 > Ⅰ. 서론 Ⅱ. 체내신체검사와 긴급압수ㆍ수색ㆍ검증의 허용범위 Ⅲ. 긴급강제채혈의 허용범위와

More information

Microsoft PowerPoint - Chap2 [호환 모드]

Microsoft PowerPoint - Chap2 [호환 모드] 2.4 Sparse matrix ADT 2.4 Sparse matrix ADT 일반적으로 matrix 는 m 개의행 (row) 과 n 개의열 (column) 로구성되며, m x n (m by n 으로읽음 ) 으로표시된다. 2 차원배열에의한 matrix 의표현 (A[6,6] à A[row m, column n]) col 0 col 1 col 2 col 3 col

More information

<B3EDB9AEC1FD5F3235C1FD2E687770>

<B3EDB9AEC1FD5F3235C1FD2E687770> 경상북도 자연태음악의 소박집합, 장단유형, 전단후장 경상북도 자연태음악의 소박집합, 장단유형, 전단후장 - 전통 동요 및 부녀요를 중심으로 - 이 보 형 1) * 한국의 자연태 음악 특성 가운데 보편적인 특성은 대충 밝혀졌지만 소박집합에 의한 장단주기 박자유형, 장단유형, 같은 층위 전후 구성성분의 시가( 時 價 )형태 등 은 밝혀지지 않았으므로

More information

<32B1B3BDC32E687770>

<32B1B3BDC32E687770> 008년도 상반기 제회 한 국 어 능 력 시 험 The th Test of Proficiency in Korean 일반 한국어(S-TOPIK 중급(Intermediate A 교시 이해 ( 듣기, 읽기 수험번호(Registration No. 이 름 (Name 한국어(Korean 영 어(English 유 의 사 항 Information. 시험 시작 지시가 있을

More information

조사연구 권 호 연구논문 한국노동패널조사자료의분석을위한패널가중치산출및사용방안사례연구 A Case Study on Construction and Use of Longitudinal Weights for Korea Labor Income Panel Survey 2)3) a

조사연구 권 호 연구논문 한국노동패널조사자료의분석을위한패널가중치산출및사용방안사례연구 A Case Study on Construction and Use of Longitudinal Weights for Korea Labor Income Panel Survey 2)3) a 조사연구 권 호 연구논문 한국노동패널조사자료의분석을위한패널가중치산출및사용방안사례연구 A Case Study on Construction and Use of Longitudinal Weights for Korea Labor Income Panel Survey 2)3) a) b) 조사연구 주제어 패널조사 횡단면가중치 종단면가중치 선형혼합모형 일반화선형혼 합모형

More information

(JBE Vol. 21, No. 1, January 2016) (Regular Paper) 21 1, (JBE Vol. 21, No. 1, January 2016) ISSN 228

(JBE Vol. 21, No. 1, January 2016) (Regular Paper) 21 1, (JBE Vol. 21, No. 1, January 2016)   ISSN 228 (JBE Vol. 1, No. 1, January 016) (Regular Paper) 1 1, 016 1 (JBE Vol. 1, No. 1, January 016) http://dx.doi.org/10.5909/jbe.016.1.1.60 ISSN 87-9137 (Online) ISSN 16-7953 (Print) a), a) An Efficient Method

More information

예제 1.1 ( 경기값과공정한경기 ) >> A = [5 3 9; 8 10 11; 6 2 8], P = [0 1 0], Q = [1 0 0]' % 3x3 행렬경기 A = 5 3 9 8 10 11 6 2 8 P = 0 1 0 Q = 1 0 0 >> E = P * A * Q % 경기자 R은항상 2행을선택하고 C는항상 1열을선택하면, % R은 $8을얻는것이보장되고

More information

강의10

강의10 Computer Programming gdb and awk 12 th Lecture 김현철컴퓨터공학부서울대학교 순서 C Compiler and Linker 보충 Static vs Shared Libraries ( 계속 ) gdb awk Q&A Shared vs Static Libraries ( 계속 ) Advantage of Using Libraries Reduced

More information

PowerPoint Presentation

PowerPoint Presentation 자바프로그래밍 1 배열 손시운 ssw5176@kangwon.ac.kr 배열이필요한이유 예를들어서학생이 10 명이있고성적의평균을계산한다고가정하자. 학생 이 10 명이므로 10 개의변수가필요하다. int s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; 하지만만약학생이 100 명이라면어떻게해야하는가? int s0, s1, s2, s3, s4,

More information

Chapter 4. LISTS

Chapter 4. LISTS 연결리스트의응용 류관희 충북대학교 1 체인연산 체인을역순으로만드는 (inverting) 연산 3 개의포인터를적절히이용하여제자리 (in place) 에서문제를해결 typedef struct listnode *listpointer; typedef struct listnode { char data; listpointer link; ; 2 체인연산 체인을역순으로만드는

More information

10주차.key

10주차.key 10, Process synchronization (concurrently) ( ) => critical section ( ) / =>, A, B / Race condition int counter; Process A { counter++; } Process B { counter ;.. } counter++ register1 = counter register1

More information

Output file

Output file 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 An Application for Calculation and Visualization of Narrative Relevance of Films Using Keyword Tags Choi Jin-Won (KAIST) Film making

More information

비트와바이트 비트와바이트 비트 (Bit) : 2진수값하나 (0 또는 1) 를저장할수있는최소메모리공간 1비트 2비트 3비트... n비트 2^1 = 2개 2^2 = 4개 2^3 = 8개... 2^n 개 1 바이트는 8 비트 2 2

비트와바이트 비트와바이트 비트 (Bit) : 2진수값하나 (0 또는 1) 를저장할수있는최소메모리공간 1비트 2비트 3비트... n비트 2^1 = 2개 2^2 = 4개 2^3 = 8개... 2^n 개 1 바이트는 8 비트 2 2 비트연산자 1 1 비트와바이트 비트와바이트 비트 (Bit) : 2진수값하나 (0 또는 1) 를저장할수있는최소메모리공간 1비트 2비트 3비트... n비트 2^1 = 2개 2^2 = 4개 2^3 = 8개... 2^n 개 1 바이트는 8 비트 2 2 진수법! 2, 10, 16, 8! 2 : 0~1 ( )! 10 : 0~9 ( )! 16 : 0~9, 9 a, b,

More information

歯15-ROMPLD.PDF

歯15-ROMPLD.PDF MSI & PLD MSI (Medium Scale Integrate Circuit) gate adder, subtractor, comparator, decoder, encoder, multiplexer, demultiplexer, ROM, PLA PLD (programmable logic device) fuse( ) array IC AND OR array sum

More information

삼교-1-4.hwp

삼교-1-4.hwp 5 19대 총선 후보 공천의 과정과 결과, 그리고 쟁점: 새누리당과 민주통합당을 중심으로* 윤종빈 명지대학교 논문요약 이 글은 19대 총선의 공천의 제도, 과정, 그리고 결과를 분석한다. 이론적 검증보다는 공천 과정의 설명과 쟁점의 발굴에 중점을 둔다. 4 11 총선에서 새누리당과 민주통합당의 공천은 기대와 달랐고 그 특징은 다음과 같이 요약될 수 있다. 첫째,

More information

<C7C1B7A3C2F7C0CCC1EE20B4BABAF1C1EEB4CFBDBA20B7B1C4AA20BBE7B7CA5FBCADB9CEB1B35F28C3D6C1BE292E687770>

<C7C1B7A3C2F7C0CCC1EE20B4BABAF1C1EEB4CFBDBA20B7B1C4AA20BBE7B7CA5FBCADB9CEB1B35F28C3D6C1BE292E687770> Through proactively respond Franchise New business launching instance : Focus on the BEERBARKET s successful story of INTO FRANCHISE SYSTEMS, INC. 선행적 대응을 통한 프랜차이즈 뉴비즈니스 런칭 사례 : 인토외식산업의 맥주바켓 성공사례 MAXCESS

More information

Buy one get one with discount promotional strategy

Buy one get one with discount promotional strategy Buy one get one with discount Promotional Strategy Kyong-Kuk Kim, Chi-Ghun Lee and Sunggyun Park ISysE Department, FEG 002079 Contents Introduction Literature Review Model Solution Further research 2 ISysE

More information

<32392D342D313020C0FCB0C7BFED2CC0CCC0B1C8F12E687770>

<32392D342D313020C0FCB0C7BFED2CC0CCC0B1C8F12E687770> Journal of the Society of Korea Industrial and Systems Engineering Vol 9 No 4 pp75 8 December 006 유전자 알고리즘을 이용한 시간제약 차량경로문제 * ** * ** 1 Vehicle Routing Problems with Time Window Constraints by Using Genetic

More information

03장.스택.key

03장.스택.key ---------------- DATA STRUCTURES USING C ---------------- 03CHAPTER 1 ? (stack): (LIFO:Last-In First-Out) 2 : top : ( index -1 ),,, 3 : ( ) ( ) -> ->. ->.... 4 Stack ADT : (LIFO) : init():. is_empty():

More information

Stage 2 First Phonics

Stage 2 First Phonics ORT Stage 2 First Phonics The Big Egg What could the big egg be? What are the characters doing? What do you think the story will be about? (큰 달걀은 무엇일까요? 등장인물들은 지금 무엇을 하고 있는 걸까요? 책은 어떤 내용일 것 같나요?) 대해 칭찬해

More information

DBPIA-NURIMEDIA

DBPIA-NURIMEDIA FPS게임 구성요소의 중요도 분석방법에 관한 연구 2 계층화 의사결정법에 의한 요소별 상관관계측정과 대안의 선정 The Study on the Priority of First Person Shooter game Elements using Analytic Hierarchy Process 주 저 자 : 배혜진 에이디 테크놀로지 대표 Bae, Hyejin AD Technology

More information

<33312D312D313220C0CCC7D1C1F820BFB0C3A2BCB12E687770>

<33312D312D313220C0CCC7D1C1F820BFB0C3A2BCB12E687770> Journal of the Society of Korea Industrial and Systems Engineering Vol No pp March 8 Scatter Search를 이용한 신뢰성 있는 네트워크의 경제적 설계 * ** * ** Economic Design of Reliable Networks Using Scatter Search HanJin Lee*

More information

DIY 챗봇 - LangCon

DIY 챗봇 - LangCon without Chatbot Builder & Deep Learning bage79@gmail.com Chatbot Builder (=Dialogue Manager),. We need different chatbot builders for various chatbot services. Chatbot builders can t call some external

More information

11강-힙정렬.ppt

11강-힙정렬.ppt 11 (Heap ort) leejaku@shinbiro.com Topics? Heap Heap Opeations UpHeap/Insert, DownHeap/Extract Binary Tree / Index Heap ort Heap ort 11.1 (Priority Queue) Operations ? Priority Queue? Priority Queue tack

More information

탄도미사일 방어무기체계 배치모형 연구 (Optimal Allocation Model for Ballistic Missile Defense System by Simulated Annealing Algorithm)

탄도미사일 방어무기체계 배치모형 연구 (Optimal Allocation Model for Ballistic Missile Defense System by Simulated Annealing Algorithm) 탄도미사일 방어무기체계 배치모형 연구 (Optimal Allocation Model for Ballistic Missile Defense System by Simulated Annealing Algorithm) 이 상 헌 국방대학교 운영분석학과 우 122-875 서울시 은평구 수색동 205번지 Abstract The set covering(sc) problem

More information

DBPIA-NURIMEDIA

DBPIA-NURIMEDIA 김진주 김수연. 초등학생대상장애이해교육에활용된동화에나타난장애인관분석. 특수교육, 2013, 제12권, 제2호, 135-160... 20.,,. 4.,,.,..... 주제어 : 장애이해교육, 동화, 장애인관 1. ( 1 ) Incheon Munhak Elementary School ( )(, E-mail: sooyoun@ginue.ac.kr) Dept. of

More information

03±èÀçÈÖ¾ÈÁ¤ÅÂ

03±èÀçÈÖ¾ÈÁ¤Å x x x x Abstract The Advertising Effects of PPL in TV Dramas - Identificaiton by Implicit Memory-based Measures Kim, Jae - hwi(associate professor, Dept. of psychology, Chung-Ang University) Ahn,

More information

09권오설_ok.hwp

09권오설_ok.hwp (JBE Vol. 19, No. 5, September 2014) (Regular Paper) 19 5, 2014 9 (JBE Vol. 19, No. 5, September 2014) http://dx.doi.org/10.5909/jbe.2014.19.5.656 ISSN 2287-9137 (Online) ISSN 1226-7953 (Print) a) Reduction

More information

Microsoft PowerPoint - ch09 - 연결형리스트, Stack, Queue와 응용 pm0100

Microsoft PowerPoint - ch09 - 연결형리스트, Stack, Queue와 응용 pm0100 2015-1 프로그래밍언어 9. 연결형리스트, Stack, Queue 2015 년 5 월 4 일 교수김영탁 영남대학교공과대학정보통신공학과 (Tel : +82-53-810-2497; Fax : +82-53-810-4742 http://antl.yu.ac.kr/; E-mail : ytkim@yu.ac.kr) 연결리스트 (Linked List) 연결리스트연산 Stack

More information

우리들이 일반적으로 기호

우리들이 일반적으로 기호 일본지방자치체( 都 道 府 縣 )의 웹사이트상에서 심벌마크와 캐릭터의 활용에 관한 연구 A Study on the Application of Japanese Local Self-Government's Symbol Mark and Character on Web. 나가오카조형대학( 長 岡 造 形 大 學 ) 대학원 조형연구과 김 봉 수 (Kim Bong Su) 193

More information

ePapyrus PDF Document

ePapyrus PDF Document 막힌 부분을 갖는 네트워크 내 효과적인 경로 탐색을 위한 유전 알고리즘 적용 김준우 *, 이민정 ** 요약 자연계의 진화 과정을 모방하는 유전 알고리즘은 다양한 조합 최적화와 같은 NP-hard 문제의 해를 탐색하는데 매 우 유용한 도구이다. 본 논문은 네트워크 내에 존재하는 두 노드 사이의 최단 경로를 구하는 문제 풀이를 위하여 유 전 알고리즘을 적용하고자

More information

Y 1 Y β α β Independence p qp pq q if X and Y are independent then E(XY)=E(X)*E(Y) so Cov(X,Y) = 0 Covariance can be a measure of departure from independence q Conditional Probability if A and B are

More information

GEAR KOREA

GEAR KOREA GEAR Original Equipment Manufacturing Gears Support your various needs with our world class engineering skill and the newest manufacturing facilities. 1 2 Nissei creates high-quality high-precision gears

More information

2017.09 Vol.255 C O N T E N T S 02 06 26 58 63 78 99 104 116 120 122 M O N T H L Y P U B L I C F I N A N C E F O R U M 2 2017.9 3 4 2017.9 6 2017.9 7 8 2017.9 13 0 13 1,007 3 1,004 (100.0) (0.0) (100.0)

More information

김경재 안현철 지능정보연구제 17 권제 4 호 2011 년 12 월

김경재 안현철 지능정보연구제 17 권제 4 호 2011 년 12 월 지능정보연구제 17 권제 4 호 2011 년 12 월 (pp.241~254) Support vector machines(svm),, CRM. SVM,,., SVM,,.,,. SVM, SVM. SVM.. * 2009() (NRF-2009-327- B00212). 지능정보연구제 17 권제 4 호 2011 년 12 월 김경재 안현철 지능정보연구제 17 권제 4 호

More information

C++ Programming

C++ Programming C++ Programming 연산자다중정의 Seo, Doo-okok clickseo@gmail.com http://www.clickseo.com 목 차 연산자다중정의 C++ 스타일의문자열 2 연산자다중정의 연산자다중정의 단항연산자다중정의 이항연산자다중정의 cin, cout 그리고 endl C++ 스타일의문자열 3 연산자다중정의 연산자다중정의 (Operator

More information

untitled

untitled 5. hamks@dongguk.ac.kr (regular expression): (recognizer) : F(, scanner) CFG(context-free grammar): : PD(, parser) CFG 1 CFG form : N. Chomsky type 2 α, where V N and α V *. recursive construction ) E

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 Reasons for Poor Performance Programs 60% Design 20% System 2.5% Database 17.5% Source: ORACLE Performance Tuning 1 SMS TOOL DBA Monitoring TOOL Administration TOOL Performance Insight Backup SQL TUNING

More information

Microsoft Word - FunctionCall

Microsoft Word - FunctionCall Function all Mechanism /* Simple Program */ #define get_int() IN KEYOARD #define put_int(val) LD A val \ OUT MONITOR int add_two(int a, int b) { int tmp; tmp = a+b; return tmp; } local auto variable stack

More information

Microsoft PowerPoint - ch12 - Graph, Graph Algorithms

Microsoft PowerPoint - ch12 - Graph, Graph Algorithms 2015-1 12. 그래프와관련알고리즘 2015 년 5 월 28 일 교수김영탁 영남대학교공과대학정보통신공학과 (Tel : +82-53-810-2497; Fax : +82-53-810-4742 http://antl.yu.ac.kr/; E-mail : ytkim@yu.ac.kr) 그래프 (Graph) 그래프의응용예 Outline 미로찾기 인터넷라우터에서의패킷 forwarding

More information