Problem Solving via Satisfiability

Size: px
Start display at page:

Download "Problem Solving via Satisfiability"

Transcription

1 Problem Solving via Satisfiability 오학주 고려대학교정보대학컴퓨터학과 January 20, 2018

2 두가지소프트웨어기반분야 알고리즘및계산복잡도 소프트웨어로문제를해결하는방법에대한탐구 자료구조, 알고리즘, 계산이론, etc 형식논리및프로그래밍언어 소프트웨어를손쉽게잘만드는방법에대한탐구 프로그래밍언어, 컴파일러, 전산논리, etc

3 예: 퀵 정렬 (Quick Sort) Tony Hoare가 고안한 평균복잡도 O(N log N)의 정렬 알고리즘: 1. 리스트가 비었으면 그대로 리턴한다. 2. 리스트에서 원소(피봇)를 하나 고른다. 3. 피봇 앞에는 피봇보다 값이 작은 모든 원소들을 모으고, 피봇 뒤에는 피봇보다 값이 큰 모든 원소들을 모은다: 피봇보다 작은 원소들(L1 ) + 피봇 + 피봇보다 큰 원소들(L2 ) 4. 두 리스트 L1 과 L2 에 대해서 재귀적으로 위 과정을 반복한다.

4 프로그래밍 언어가 생각의 틀을 결정

5 프로그래밍언어가생각의틀을결정 qsort: stmfd sp!, {r4, r6, Save r4 and r6 for caller mov r6, r6 <- right qsort_tailcall_entry: sub r7, r6, If right - left <= 1 (already sorted), cmp r7, #1 ldmlefd sp!, {r4, r6, Return, restoring r4 and r6 ldr r7, [r0, r1, asl r7 <- a[left], gets pivot element add r2, r1, l <- left + 1 mov r4, r <- right partition_loop: ldr r3, [r0, r2, asl r3 <- a[l] cmp r3, If a[l] <= pivot_element, addle r2, r2, increment l, and ble continue to next iteration. sub r4, r4, Otherwise, decrement r, ldr r5, [r0, r4, asl and swap a[l] and a[r]. str r5, [r0, r2, asl #2] str r3, [r0, r4, asl #2] partition_test: cmp r2, If l < r, blt continue iterating. partition_finish: sub r2, r2, Decrement l ldr r3, [r0, r2, asl Swap a[l] and pivot

6 프로그래밍언어가생각의틀을결정 void swap(int* a, int* b) { int t = *a; *a = *b; *b = t; } int partition (int arr[], int low, int high) { int pivot = arr[high]; int i = (low - 1); } for (int j = low; j <= high- 1; j++) { if (arr[j] <= pivot) { i++; swap(&arr[i], &arr[j]); } } swap(&arr[i + 1], &arr[high]); return (i + 1); void quicksort(int arr[], int low, int high) { if (low < high) { int pi = partition(arr, low, high); quicksort(arr, low, pi - 1); quicksort(arr, pi + 1, high); } }

7 프로그래밍언어가생각의틀을결정 quicksort [] = [] quicksort (x:xs) = quicksort ys ++ [x] ++ quicksort zs where ys = [a a <- xs, a <=x] zs = [b b <- xs, b > x] cf) 1. 리스트가비었으면그대로리턴한다. 2. 리스트에서원소 ( 피봇 ) 를하나고른다. 3. 피봇앞에는피봇보다값이작은모든원소들을모으고, 피봇뒤에는피봇보다값이큰모든원소들을모은다 : 피봇보다작은원소들 (L 1 ) + 피봇 + 피봇보다큰원소들 (L 2 ) 4. 두리스트 L 1 과 L 2 에대해서재귀적으로위과정을반복한다.

8 소프트웨어자동디버깅기술 소프트웨어오류자동탐지및수정

9 소프트웨어검증기술 : 0 l u < a sorted(a, l, : rv i.l i u a[i] = e bool BinarySearch (int a[], int l, int u, int e) { if (l > u) return false; else { int m := (l + u) div 2; if (a[m] = e) return true; else if (a[m] < e) return BinarySearch (a, m + 1, u, e) else return BinarySearch (a, l, m 1, e) } }

10 자동프로그래밍기술 의도로부터소프트웨어를자동합성

11 기본기 : Logic An introduction to formal logic and satisfiability Propositional logic and satisfiability Problem solving via satisfiability First-order logic and satisfiability

12 Proposition and Satisfiability 명제 : 참또는거짓인문장, 비가온다 (P) 날이흐리다 (Q) 비가오지않는다 ( P) 비가오고날이흐리다 (P Q) 비가오거나날이흐리다 (P Q) 비가오면날이흐리다 (P Q) Satisfiability: 주어진명제가참이될수있는지여부, P Q P P P P P Q

13 Syntax of Propositional Logic Atom: basic elements truth symbols ( false ) and ( true ) propositional variables P, Q, R,... Literal: an atom α or its negation α. Formula: a literal or the application of a logical connective to formulas: F negation ( not ) F 1 F 2 conjunction ( and ) F 1 F 2 disjunction ( or ) F 1 F 2 implication ( implies ) F 1 F 2 iff ( if and only if )

14 Semantics of Propositional Logic The meaning of a PL formula is either true or false. It is defined with an interpretation that assigns truth values to propositional variables. For example, under I : {P true, Q false}, the formula F : P Q P Q evaluates to true. Under I : {P true, Q true}, F evaluates to false. We write I F if F evaluates to true under I. satisfying interpretation We write I F if F evaluates to false under I. falsifying interpretation

15 Semantics of Propositional Logic 귀납적으로정의 (inductive definition): I, I, for any I I P iff I [P] = true I P iff I [P] = false I F iff I F I F 1 F 2 iff I F 1 and I F 2 I F 1 F 2 iff I F 1 or I F 2 I F 1 F 2 iff I F 1 or I F 2 I F 1 F 2 iff (I F 1 and I F 2 ) or (I F 1 and I F 2 )

16 Example 1 Consider the formula F : P Q P Q and the interpretation I : {P true, Q false} The truth value of F is computed as follows: 1. I P since I [P] = true 2. I Q since I [Q] = false 3. I Q by 2 and semantics of 4. I P Q by 2 and semantics of 5. I P Q by 1 and semantics of 6. I F by 4 and semantics of

17 Example 2 What is the truth value of (P Q) (Q R) under I = {P false, Q true, R true}?

18 Satisfiability and Validity A formula F is satisfiable iff there exists an interpretation I such that I F. Otherwise, F is unsatisfiable. A formula F is valid iff for all interpretations I, I F. Otherwise, F is invalid. Satisfiability and validity are dual: F is valid iff F is unsatisfiable Thus, we can check satisfiability by deciding validity, and vice versa. The first known NP-complete problem. No efficient algorithm exists (for all instances). Every decision problem in the NP class can be reduced to the boolean satisfiability problem.

19 Examples Determine satisfiability and validity of the formulas: F 1 : P Q P Q F 2 : P Q P Q F 3 : P Q P Q F 4 : P Q (Q P)

20 Deciding Satisfiability and Validity Two approaches to show F is valid: Truth table method (exhaustive search). Semantic argument method (deduction).

21 Truth Table Method F : P Q P Q Thus, F is valid. P Q P Q Q P Q F Truth table method is brute-force and impractical. Also, it is not applicable to logic where domain is infinite (e.g., first-order logic).

22 Semantic Argument Method ( 귀류법 ) Semantic argument method is essentially a proof by contradiction, and is applicable to logics with infinite domain. Main idea: Assume F is not valid: there exists some falsifying interpretation I such that I F. Apply proof rules. If we derive a contradiction in every case of the proof, then F is valid. If there is some branch where we cannot derive (after applying all proof rules), then F is not valid.

23 Proof Rules for Propositional Logic I F I F I F G I F, I G I F G I F I G I F G I F I G I F G I F G I F G I F I F I F I F I I F G I F I G I F G I F, I G I F G I F, I G I F G I F G I F G

24 Example 1 To prove that the formula F : P Q P Q is valid, assume that it is invalid and derive a contradiction: 1. I P Q P Q assumption 2. I P Q by 1 and semantics of 3. I P Q by 1 and semantics of 4. I P by 2 and semantics of 5. I P by 3 and semantics of 6. I 4 and 5 are contradictory

25 Example 2 To prove that the formula F : (P Q) (Q R) (P R) is valid, assume that it is invalid and derive a contradiction: 1. I F assumption 2. I (P Q) (Q R) by 1 and semantics of 3. I P R by 1 and semantics of 4. I P by 3 and semantics of 5. I R by 3 and semantics of 6. I P Q 2 and semantics of 7. I Q R 2 and semantics of Two cases consider from 6: 1. I P: contradiction with I Q: two cases to consider from 7: 2.1 I Q: contradiction 2.2 I R: contradiction with 5.

26 Equivalence and Implication Two formulas F 1 and F 2 are equivalent F 1 F 2 iff F 1 F 2 is valid, i.e., for all interpretations I, I F 1 F 2. Formula F 1 implies formula F 2 F 1 = F 2 iff F 1 F 2 is valid, i.e., for all interpretations I, I F 1 F 2. Note F 1 F 2 and F 1 = F 2 are assertions, not formulas. We can check equivalence and implication by checking satisfiability. How?

27 Examples P P P Q P Q R ( R P) = P

28 Normal Forms A normal form of formulas is a syntactic restriction such that for every formula of the logic, there is an equivalent formula in the normal form. Three useful normal forms in logic: Negation Normal Form (NNF) Disjunctive Normal Form (DNF) Conjunctive Normal Form (CNF)

29 Negation Normal Form (NNF) NNF requires that,, and are the only connectives (i.e., no and ) and that negations appear only in literals. P Q (R S) P (P Q) P Q Transforming a formula F to equivalent formula F in NNF can be done by repeatedly applying the following equivalences: F 1 F 1 (F 1 F 2 ) F 1 F 2 (F 1 F 2 ) F 1 F 2 F 1 F 2 F 1 F 2 F 1 F 2 (F 1 F 2 ) (F 2 F 1 )

30 Disjunctive Normal Form (DNF) A formula is in disjunctive normal form (DNF) if it is a disjunction of conjunctive clauses (conjunctions of literals): i To convert a formula F into an equivalent formula in DNF, transform F into NNF and then distribute conjunctions over disjunctions: j (F 1 F 2 ) F 3 (F 1 F 3 ) (F 2 F 3 ) F 1 (F 2 F 3 ) (F 1 F 2 ) (F 1 F 3 ) l i,j

31 Example To convert F : (Q 1 Q 2 ) ( R 1 R 2 ) into DNF, first transform it into NNF: F : (Q 1 Q 2 ) (R 1 R 2 ) then apply distributivity: F : (Q 1 (R 1 R 2 )) (Q 2 (R 1 R 2 )) and then: F : (Q 1 R 1 ) (Q 1 R 2 ) (Q 2 R 1 ) (Q 2 R 2 ))

32 Conjunctive Normal Form (CNF) A formula is in conjunctive normal form (CNF) if it is a conjunction of clauses (i.e. conjunctions of disjunctions of literals): i To convert a formula F into an equivalent formula in DNF, transform F into NNF and distribute disjunctions over conjunctions: j (F 1 F 2 ) F 3 (F 1 F 3 ) (F 2 F 3 ) F 1 (F 2 F 3 ) (F 1 F 2 ) (F 1 F 3 ) l i,j

33 Example To convert F : (Q 1 Q 2 ) ( R 1 R 2 ) into CNF, transform F into NNF: F : (Q 1 Q 2 ) (R 1 R 2 ) Then apply distributivity: F : (Q 1 R 1 R 2 ) (Q 2 R 1 R 2 )

34 Decision Procedures (Satisfiability Solvers) A decision procedure decides whether F is satisfiable after some finite steps of computation. Approaches for deciding satisfiability: Search: exhaustively search through all possible assignments Deduction: deduce facts from known facts by iteratively applying proof rules Combination: Modern SAT solvers combine search and deduction in an effective way

35 Exhaustive Search The recursive algorithm for deciding satisfiability: let rec SAT F = if F = then true else if F = then false else let P = Choose(vars(F )) in (SAT F {P }) (SAT F {P }) When applying F {P } and F {P }, the resulting formulas should be simplified using equivalences on PL. F F F F F F F F F F F F F F...

36 Example 1 F : (P Q) P Q Choose variable P and F {P } : ( Q) Q which simplifies to F 1 : Q Q F 1 {Q } : F 1 {Q } : Recurse on the other branch for P in F : F {P } : ( Q) Q which simplifies to. All branches end without finding a satisfying assignment.

37 Example 2 F : (P Q) P Choose P and recurse on the first case: which is equivalent to. Try the other case: which is equivalent to. F {P } : ( Q) T F {P } : ( Q) Arbitrarily assigning a value to Q produces the satisfying interpretation: I : {P false, Q true}.

38 DPLL Applicable only to CNF formulas. The Davis-Putnam-Logemann-Loveland algorithm (DPLL) combines the enumerative search and a restricted form of deduction, called unit resolution. If a set of clauses contains a unit clause l, we can simplify the other clauses as follows: Every clause (other than the unit clause itself) containing l is removed, In every clause that contains l this literal is deleted. The process of applying this resolution as much as possible is called Boolean constraint propagation (BCP).

39 BCP Example (a b) ( a c) ( c d) a Apply unit resolution for a produces c ( c d) a. Applying unit resolution for c produces c d a The result is equivalent to the original formula.

40 DPLL DPLL is similar to SAT, except that it begins by applying BCP: let rec DPLL F = let F = BCP(F ) in if F = then true else if F = then false else let P = Choose(vars(F )) in (DPLL F {P }) (DPLL F {P })

41 Practical SAT Solvers Over the past decades, significant effort has been devoted to improving SAT solvers. As the result, modern SAT solvers are extremely scalable for practical instances.

42 Z3 A state-of-the-art SAT/SMT solver: Supported theories: Propositional Logic Theory of Equality Uninterpreted Functions Arithmetic Arrays Bit-vectors,... References Z3 Guide Z3 API in Python http: //ericpony.github.io/z3py-tutorial/guide-examples.htm

43 Example F 1 : P Q P Q F 2 : P Q P Q F 3 : (P Q) (Q R) (P Q) 1 from z3 import 2 p = Bool ( P ) 3 q = Bool ( Q ) 4 r = Bool ( R ) 5 f 1 = I m p l i e s ( And ( p, q ), Or ( p, q ) ) 6 f 2 = I m p l i e s ( Or ( p, q ), And ( p, q ) ) 7 f 3 = I m p l i e s ( And ( I m p l i e s ( p, q ), I m p l i e s ( q, r ) ), I m p l i e s ( p, q ) ) 8 p r o v e ( f 1 ) 9 p r o v e ( f 2 ) 10 p r o v e ( f 3 ) $ python test.py proved counterexample [Q = True, P = False] proved

44 Example 1 from z3 import 2 3 p = Bool ( P ) 4 q = Bool ( Q ) 5 r = Bool ( R ) 6 7 f 1 = I m p l i e s ( And ( p, q ), Or ( p, q ) ) 8 f 2 = I m p l i e s ( Or ( p, q ), And ( p, q ) ) 9 10 s = S o l v e r ( ) 11 s. add ( Not ( f 1 ) ) 12 p r i n t s. check ( ) s = S o l v e r ( ) 15 s. add ( Not ( f 2 ) ) 16 p r i n t s. check ( ) unsat sat

45 Arithmetic 1 from z3 import 2 3 x = I n t ( x ) 4 y = I n t ( y ) 5 s o l v e ( x > 2, y < 10, x + 2 y == 7) 6 7 x = Real ( x ) 8 y = Real ( y ) 9 s o l v e ( x 2 + y 2 > 3, x 3 + y < 5) $ python test.py [y = 0, x = 7] [x = 1/8, y = 2]

46 BitVectors 1 x = BitVec ( x, 32) 2 y = BitVec ( y, 32) 3 4 s o l v e ( x & y == y ) 5 s o l v e ( x >> 2 == 3) 6 s o l v e ( x << 2 == 3) 7 s o l v e ( x << 2 == 24) [y = , x = 0] [x = 12] no solution [x = 6]

47 Uninterpreted Functions 1 x = I n t ( x ) 2 y = I n t ( y ) 3 f = F u n c t i o n ( f, I n t S o r t ( ), I n t S o r t ( ) ) 4 5 s = S o l v e r ( ) 6 s. add ( f ( f ( x ) ) == x, f ( x ) == y, x!= y ) 7 8 p r i n t s. check ( ) 9 10 m = s. model ( ) 11 p r i n t m p r i n t f ( f ( x ) ) =, m. e v a l u a t e ( f ( f ( x ) ) ) 14 p r i n t f ( x ) =, m. e v a l u a t e ( f ( x ) ) sat [x = 0, y = 1, f = [0 -> 1, 1 -> 0, else -> 1]] f(f(x)) = 0 f(x) = 1

48 Constraint Generation with List Comprehension 1 X = [ I n t ( x%s % i ) f o r i i n range ( 5 ) ] 2 Y = [ I n t ( y%s % i ) f o r i i n range ( 5 ) ] 3 p r i n t X, Y 4 X plus Y = [ X[ i ] + Y[ i ] f o r i i n range ( 5 ) ] 5 X gt Y = [ X[ i ] > Y[ i ] f o r i i n range ( 5 ) ] 6 p r i n t X plus Y 7 p r i n t X gt Y 8 a = And ( X gt Y ) 9 p r i n t a 10 s o l v e ( a ) [x0, x1, x2, x3, x4] [y0, y1, y2, y3, y4] [x0 + y0, x1 + y1, x2 + y2, x3 + y3, x4 + y4] [x0 > y0, x1 > y1, x2 > y2, x3 > y3, x4 > y4] And(x0 > y0, x1 > y1, x2 > y2, x3 > y3, x4 > y4) [y4 = 0, x4 = 1, y3 = 0, x3 = 1, y2 = 0, x2 = 1, y1 = 0, x1 = 1, y0 = 0, x0 = 1]

49 Problem 1: Program Equivalence Consider the two code fragments. if (!a&&!b) then h else if (!a) then g else f if (a) then f else if (b) then g else h The latter might have been generated from an optimizing compiler. We would like to prove that the two programs are equivalent.

50 Encoding in Propositional Logic The if-then-else construct can be replaced by a PL formula as follows: if x then y else z (x y) ( x z) The problem of checking the equivalence is to check the validity of the formula: F : ( a b) h ( a b) ( a g a f ) a f a (b g b h) If F is unsatisfiable, the two expressions are equivalent.

51 In Python 1 from z3 import 2 3 a = Bool ( a ) 4 b = Bool ( b ) 5 f = Bool ( f ) 6 g = Bool ( g ) 7 h = Bool ( h ) 8 9 f 1 = Or ( And ( And ( Not ( a ), Not ( b ) ), h ), And ( Not ( And ( Not ( a ), Not ( b ) ) ), ( Or ( And ( Not ( a ), g ), And ( a, f ) ) ) ) ) 10 f 2 = Or ( And ( a, f ), And ( Not ( a ), Or ( And ( b, g ), And ( Not ( b ), h ) ) ) ) s o l v e ( Not ( f 1==f 2 ) ) $ python equiv.py no solution

52 Problem 2: Seat Assignment Consider three persons A, B, and C who need to be seated in a row. There are three constraints: A does not want to sit next to C A does not want to sit in the leftmost chair B does not want to sit to the right of C We would like to check if there is a seat assignment for the three persons that satisfies the above constraints.

53 Encoding in Propositional Logic To encode the problem, let X ij be boolean variables such that X ij person i seats in chair j We need to encode two types of constraints. Valid assignments: Every person is seated Every seat is occupied i j j i X ij X ij One person per seat (X ij = X ik ) k j i,j

54 Encoding in Propositional Logic Problem constraints: A does not want to sit next to C: (X 00 = X 21) (X 01 = ( X 20 X 22)) (X 02 = X 21) A does not want to sit in the leftmost chair X 00 B does not want to sit to the right of C (X 20 = X 11 ) (X 21 = X 12 )

55 In Python 1 from z3 import 2 3 X = [ [ Bool ( x %s %s % ( i +1, j +1) ) f o r j i n range ( 3 ) ] f o r i i n range ( 3 ) ] 4 5 # e v e r y p e r s o n i s s e a t e d 6 v a l c 1 = [ ] 7 f o r i i n range ( 3 ) : 8 c = F a l s e 9 f o r j i n range ( 3 ) : 10 c = Or ( c, X[ i ] [ j ] ) 11 v a l c 1. append ( c ) # e v e r y s e a t i s o c c u p i e d 14 v a l c 2 = [ ] 15 f o r j i n range ( 3 ) : 16 c = F a l s e 17 f o r i i n range ( 3 ) : 18 c = Or ( c, X[ i ] [ j ] ) 19 v a l c 2. append ( c )

56 In Python 1 # one p e r s o n p e r s e a t 2 v a l c 3 = [ ] 3 f o r i i n range ( 3 ) : 4 f o r j i n range ( 3 ) : 5 c = True 6 f o r k i n range ( 3 ) : 7 i f k <> j : 8 c = And ( c, X[ i ] [ k ] == F a l s e ) 9 v a l c 3. append ( I m p l i e s (X[ i ] [ j ] == True, c ) ) v a l i d = v a l c 1 + v a l c 2 + v a l c # A does not want to s i t n e x t to C 14 c1 = [ I m p l i e s (X [ 0 ] [ 0 ] == True, X [ 2 ] [ 1 ] == F a l s e ), 15 I m p l i e s (X [ 0 ] [ 1 ] == True, And (X [ 2 ] [ 0 ] == F a l s e, X [ 2 ] [ 2 ] == F a l s e ) ), 16 I m p l i e s (X [ 0 ] [ 2 ] == True, X [ 2 ] [ 1 ] == F a l s e ) ]

57 In Python 1 # A does not want to s i t i n the l e f t c h a i r 2 c2 = [X [ 0 ] [ 0 ] == F a l s e ] 3 4 # B does not want to s i t to the r i g h t o f C 5 c3 = [ I m p l i e s (X [ 2 ] [ 0 ] == True, X [ 1 ] [ 1 ] == F a l s e ), 6 I m p l i e s (X [ 2 ] [ 1 ] == True, X [ 1 ] [ 2 ] == F a l s e ) ] 7 8 c = c1 + c2 + c3 9 s o l v e ( v a l i d + c ) $ python equiv.py no solution

58 Problem 3: Radio Station Let S = {s 1,..., s n } be a set of radio stations, each of which has to be allocated one of k transmission frequencies, for some k < n. Two stations that are too close to each other cannot have the same frequency. The set of pairs having this constraint is denoted by E. Find a frequency assignment.

59 Encoding in Propositional Logic X ij station i is assigned frequency j Every station is assigned at least one frequency: Every station is assigned not more than one frequency: Close stations are not assigned the same frequency:

60 Problem 4: Sudoku Insert the numbers in the 9 9 board so that each row, column, and 3 3 boxes must contain digits 1 through 9 exactly once.

61 Encoding in SMT formulas X ij : number in position (i, j), for i, j [0, 8] Each cell contains a value in {1,..., 9}: X ij 9 i=0 j=0 Each row contains a digit at most once: (j k = X ij X ik ) i=0 j=0 k=0 Each column contains a digit at most once: (i k = X ij X kj ) j=0 i=0 k=0

62 Encoding in SMT formulas Each 3 3 square contains a digit at most once: ( (i i j j ) = i 0 =0 j 0 =0 i=0 j=0 i =0 j =0 i=0 j=0 X 3i0 +i,3j 0 +j X 3i0 +i,3j 0 +j ) Board configuration (stored in B, where 0 means empty): 8 8 (B[i][j] 0 = B[i][j] = X ij )

63 Python Implementation 1 from z3 import 2 X = [ [ I n t ( x %s %s % ( i +1, j +1) ) f o r j i n range ( 9 ) ] f o r i i n range ( 9 ) ] 3 4 # each c e l l c o n t a i n s a v a l u e i n { 1,..., 9 } 5 c e l l s c = [ ] 6 f o r i i n range ( 9 ) : 7 f o r j i n range ( 9 ) : 8 c e l l s c. append ( And (1 <= X[ i ] [ j ], X[ i ] [ j ] <= 9) ) 9 10 # each row c o n t a i n s a d i g i t at most once 11 r o w s c = [ ] 12 f o r i i n range ( 9 ) : 13 f o r j i n range ( 9 ) : 14 f o r k i n range ( 9 ) : 15 r o w s c. append ( I m p l i e s ( j <>k, X[ i ] [ j ]<>X[ i ] [ k ] ) )

64 Python Implementation 1 # each column c o n t a i n s a d i g i t at most once 2 c o l s c = [ ] 3 f o r j i n range ( 9 ) : 4 f o r i i n range ( 9 ) : 5 f o r k i n range ( 9 ) : 6 c o l s c. append ( I m p l i e s ( i <>k, X[ i ] [ j ]<>X[ k ] [ j ] ) ) 7 8 # each 3 x3 s q u a r e c o n t a i n s a d i g i t at most once 9 s q c = [ ] 10 f o r i 0 i n range ( 3 ) : 11 f o r j 0 i n range ( 3 ) : 12 f o r i i n range ( 3 ) : 13 f o r j i n range ( 3 ) : 14 f o r i 2 i n range ( 3 ) : 15 f o r j 2 i n range ( 3 ) : 16 s q c. append ( I m p l i e s ( Or ( i <>i2, j <>j 2 ), X[ 3 i 0+i ] [ 3 j 0+j ] <> X[ 3 i 0+i 2 ] [ 3 j 0+j 2 ] ) ) c = c e l l s c + r o w s c +c o l s c + s q c

65 Python Implementation 1 i n s t a n c e = ( ( 0, 8, 2, 0, 0, 5, 0, 0, 0 ), 2 ( 0, 0, 0, 6, 0, 0, 2, 0, 0 ), 3 ( 6, 0, 0, 0, 0, 1, 0, 0, 0 ), 4 ( 5, 0, 0, 0, 0, 0, 0, 0, 0 ), 5 ( 0, 0, 0, 4, 0, 2, 0, 0, 0 ), 6 ( 0, 0, 0, 0, 0, 0, 0, 0, 6 ), 7 ( 0, 0, 0, 8, 0, 0, 0, 0, 5 ), 8 ( 0, 0, 8, 0, 0, 9, 0, 0, 0 ), 9 ( 0, 0, 0, 5, 0, 0, 4, 3, 0 ) ) 10 i n s t a n c e c = [ I f ( i n s t a n c e [ i ] [ j ] == 0, 11 True, X[ i ] [ j ] == i n s t a n c e [ i ] [ j ] ) 12 f o r i i n range ( 9 ) f o r j i n range ( 9 ) ] 13 s = S o l v e r ( ) 14 s. add ( sudoku c + i n s t a n c e c ) 15 i f s. check ( ) == s a t : 16 m = s. model ( ) 17 r = [ [ m. e v a l u a t e (X[ i ] [ j ] ) f o r j i n range ( 9 ) ] 18 f o r i i n range ( 9 ) ] 19 p r i n t m a t r i x ( r ) 20 e l s e : 21 p r i n t f a i l e d to s o l v e

66 Python Implementation $ python sudoku.py [[3, 8, 2, 9, 7, 5, 1, 6, 4], [1, 7, 5, 6, 8, 4, 2, 9, 3], [6, 9, 4, 2, 3, 1, 8, 5, 7], [5, 2, 7, 1, 6, 8, 3, 4, 9], [9, 3, 6, 4, 5, 2, 7, 8, 1], [8, 4, 1, 7, 9, 3, 5, 2, 6], [4, 1, 3, 8, 2, 6, 9, 7, 5], [7, 5, 8, 3, 4, 9, 6, 1, 2], [2, 6, 9, 5, 1, 7, 4, 3, 8]]

67 Problem 5: Eight Queens The eight queens puzzle is the problem of placing eight chess queens on an 8x8 chessboard so that no two queens attack each other. Thus, a solution requires that no two queens share the same row, column, or diagonal.

68 Encoding Define boolean variables Q i as follows: Q i : the column position of the queen in row i Each queen is in a column {1,..., 8}: 8 1 Q i Q i 8 i=1 No queens share the same column: 8 8 (i j = Q i Q j ) i=1 j=1 i=1 j=1 No queens share the same diagonal: 8 i (i j = Q i Q j i j Q i Q j j i)

69 In Python 1 from z3 import 2 3 d e f p r i n t b o a r d ( r ) : 4 f o r i i n range ( 8 ) : 5 f o r j i n range ( 8 ) : 6 i f r [ i ] == j +1: 7 p r i n t 1, 8 e l s e : 9 p r i n t 0, 10 p r i n t Q = [ I n t ( Q %i % ( i +1) ) f o r i i n range ( 8 ) ] v a l c = [ And (1 <= Q[ i ], Q[ i ] <= 8) 15 f o r i i n range ( 8 ) ] 16 c o l c = [ I m p l i e s ( i <> j, Q[ i ] <> Q[ j ] ) 17 f o r i i n range ( 8 ) f o r j i n range ( 8 ) ] 18 d i a g c = [ I m p l i e s ( i <> j, 19 And (Q[ i ] Q[ j ]!= i j, 20 Q[ i ] Q[ j ]!= j i ) ) 21 f o r i i n range ( 8 ) f o r j i n range ( i ) ]

70 In Python 1 s = S o l v e r ( ) 2 s. add ( v a l c + c o l c + d i a g c ) 3 r e s = s. check ( ) 4 i f r e s == s a t : 5 m = s. model ( ) 6 r = [ m. e v a l u a t e (Q[ i ] ) f o r i i n range ( 8 ) ] 7 p r i n t b o a r d ( r ) 8 p r i n t $ python queens.py

71 실습문제 1 대칭인해를서로다른해로생각할때 8- 퀸문제는총 92 개의해를가진다. 예를들어, 아래상태도해중하나이다 z3 를이용하여 92 개의모든해를출력하는프로그램을작성하시오.

72 실습문제 1 실행시키면다음과같이모든해와함께찾은개수를출력한다 Number of solutions : 92

73 실습문제 2 다음과같은이차원행렬을생각하자 A B C D E F 각가로줄 (A, B,..., F ) 은집합 X = {1, 2,..., 7} 의부분집합을의미한다. 예를들어, A 는집합 {1, 4, 7} 을의미한다. 집합 X 의모든원소를포함하되각원소가하나의가로줄에속하게되는가로줄의집합을찾는프로그램을작성하시오. 예를들어, 위예제의경우 {B, D, F } 가정답이며, {B, D, E} 또는 {A, E} 등은답이아니다.

74 연습문제 입출력포맷은다음과같다. 다음과같은텍스트파일을입력으로받는다 : 가로줄의집합을다음과같이출력한다 : 답이없으면 No solution 을출력한다.

75 First-Order Logic An extension of propositional logic with predicates, functions, and quantifiers. John likes all sports. x.sports(x) likes(john, x) John does not like some sports. x.sports(x) likes(john, x) Every mother is older than her children. x.older(mother(x), x) The length of one side of a triangle is less than the sum of the lengths of the other two sides. x, y, z.triangle(x, y, z) length(x) < length(y) + length(z)

76 Exercises John only likes sports. Fermat s Last Theorem. (a, b,c가양의정수이고, n이 3 이상의정수일때, 항상 a n + b n c n 이다.) Given: integer, >,, +, x n

77 Terms While formulas in PL evaluate to true or false, terms in FOL evaluate to values other than truth values such as integers. Basic terms are variables (x, y,... ) and constants (a, b,... ). Composite terms include n-ary functions applied to n terms, i.e., f (t 1,..., t n ), where t i s are terms. A constant can be viewed as a 0-ary function. Examples: f (a), a unary function f applied to a constant g(x, b), a binary function g applied to a variable x and a constant b f (g(x, f (b)))

78 Predicates The propositional variables of PL are generalized to predicates in FOL, denoted p, q, r,.... An n-ary predicate takes n terms as arguments. A FOL propositional variable is a 0-ary predicate, denoted P, Q, R,.... Examples: P, a propositional variable (or 0-ary predicate) p(f (x), g(x, f (x))), a binary predicate applied to two terms

79 Syntax of First-Order Logic Atom: basic elements truth symbols ( false ) and ( true ) n-ary predicates applied to n terms Literal: an atom α or its negation α. Formula: a literal or the application of a logical connective (boolean connective) to formulas, or the application of a quantifier to a formula. F p(t 1,..., t n ) atom F negation ( not ) F 1 F 2 conjunction ( and ) F 1 F 2 disjunction ( or ) F 1 F 2 implication ( implies ) F 1 F 2 iff ( if and only if ) x.f [x] existential quantification x.f [x] universal quantification

80 Interpretation A FOL interpretation I : (D I, α I ) is a pair of a domain and an assignment. D I is a nonempty set of values such as integers, reals, etc. α I maps variables, constant, functions, and predicate symbols to elements, functions, and predicates over D I. each variable x is assigned a value from D I each n-ary function symbol f is assigned an n-ary function f I : DI n D I. each n-ary predicate symbol p is assigned an n-ary predicate p I : DI n {true, false}. Example: F : x + y > z y > z x Note +,, > are just symbols: p(f (x, y), z) p(y, g(z, x)). Domain: D I = Z = {..., 1, 0, 1,...} Assignment: α I = {+ + Z, Z, > > Z, x 13, y 42, z 1,...}

81 Semantics of First-Order Logic Given an interpretation I : (D I, α I ), I F or I F. I, I, I p(t 1,..., t n ) iff α I [p(t 1,..., t n )] = true I F iff I F I F 1 F 2 iff I F 1 and I F 2 I F 1 F 2 iff I F 1 or I F 2 I F 1 F 2 iff I F 1 or I F 2 I F 1 F 2 iff (I F 1 and I F 2 ) or (I F 1 and I F 2 ) I x.f iff for all v D I, I {x v} F I x.f iff there exists v D I, I {x v} F where J : I {x v} denotes an x-variant of I : D J = D I α J [y] = α I [y] for all constant, free variable, function, and predicate symbols y, except that α J (x) = v.

82 Example F : x.f (x) = g(x) Consider the interpretation I : (D : {v 1, v 2 }, α I ): α I : {f (v 1 ) v 1, f (v 2 ) v 2, g(v 1 ) v 2, g(v 2 ) v 1 } Compute the truth value of F under I as follows: 1. I {x v} f (x) = g(x) for v D 2. I x.f (x) = g(x) since v D is arbitrary

83 Satisfiability and Validity Suppose F is a closed FOL formula (no free variables). A formula F is satisfiable iff there exists an interpretation I such that I F. A formula F is valid iff for all interpretations I, I F. Duality still holds: F is valid F is unsatisfiable. Satisfiability for first-order logic is undecidable.

84 Examples Determine satisfiability and validity: x.x + 0 = 1 F : ( x.p(x)) ( x. p(x)) F : ( x.p(x, x)) ( x. y.p(x, y))

85 First-Order Theories In practice, we are not interested in pure logical validity (i.e. valid in all interpretations) of FOL formulas but in validity in a specific class of interpretations. E.g. x.x + 0 = 1 First-order logic is rather a general framework for building a specific, restricted logic, which provides a generic syntax and building blocks for defining the restrictions, called theories. First-order theories useful for reasoning about programs: Equality Integers, rationals, and reals Lists, arrays Pointers Bit-vectors...

86 Summary Propositional logic and satisfiability First-order logic and satisfiability Problem-solving as satisfiability Applications to programming systems

Microsoft PowerPoint Predicates and Quantifiers.ppt

Microsoft PowerPoint Predicates and Quantifiers.ppt 이산수학 () 1.3 술어와한정기호 (Predicates and Quantifiers) 2006 년봄학기 문양세강원대학교컴퓨터과학과 술어 (Predicate), 명제함수 (Propositional Function) x is greater than 3. 변수 (variable) = x 술어 (predicate) = P 명제함수 (propositional function)

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

untitled

untitled Logic and Computer Design Fundamentals Chapter 4 Combinational Functions and Circuits Functions of a single variable Can be used on inputs to functional blocks to implement other than block s intended

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

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

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

PL10

PL10 assert(p!=null); *p = 10; assert(0

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

- 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

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

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

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

300 구보학보 12집. 1),,.,,, TV,,.,,,,,,..,...,....,... (recall). 2) 1) 양웅, 김충현, 김태원, 광고표현 수사법에 따른 이해와 선호 효과: 브랜드 인지도와 의미고정의 영향을 중심으로, 광고학연구 18권 2호, 2007 여름

300 구보학보 12집. 1),,.,,, TV,,.,,,,,,..,...,....,... (recall). 2) 1) 양웅, 김충현, 김태원, 광고표현 수사법에 따른 이해와 선호 효과: 브랜드 인지도와 의미고정의 영향을 중심으로, 광고학연구 18권 2호, 2007 여름 동화 텍스트를 활용한 패러디 광고 스토리텔링 연구 55) 주 지 영* 차례 1. 서론 2. 인물의 성격 변화에 의한 의미화 전략 3. 시공간 변화에 의한 의미화 전략 4. 서사의 변개에 의한 의미화 전략 5. 창조적인 스토리텔링을 위하여 6. 결론 1. 서론...., * 서울여자대학교 초빙강의교수 300 구보학보 12집. 1),,.,,, TV,,.,,,,,,..,...,....,...

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

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

HW5 Exercise 1 (60pts) M interpreter with a simple type system M. M. M.., M (simple type system). M, M. M., M.

HW5 Exercise 1 (60pts) M interpreter with a simple type system M. M. M.., M (simple type system). M, M. M., M. 오늘할것 5 6 HW5 Exercise 1 (60pts) M interpreter with a simple type system M. M. M.., M (simple type system). M, M. M., M. Review: 5-2 7 7 17 5 4 3 4 OR 0 2 1 2 ~20 ~40 ~60 ~80 ~100 M 언어 e ::= const constant

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

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf("hihi\n"); } warning: conflicting types for functiona

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf(hihi\n); } warning: conflicting types for functiona 이름 : 학번 : A. True or False: 각각항목마다 True 인지 False 인지적으세요. 1. (Python:) randint 함수를사용하려면, random 모듈을 import 해야한다. 2. (Python:) '' (single quote) 는한글자를표현할때, (double quote) 는문자열을표현할때사용한다. B. 다음에러를수정하는방법을적으세요.

More information

- i - - ii - - iii - - iv - - v - - vi - - 1 - - 2 - - 3 - 1) 통계청고시제 2010-150 호 (2010.7.6 개정, 2011.1.1 시행 ) - 4 - 요양급여의적용기준및방법에관한세부사항에따른골밀도검사기준 (2007 년 11 월 1 일시행 ) - 5 - - 6 - - 7 - - 8 - - 9 - - 10 -

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

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

예제 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

Discrete Mathematics

Discrete Mathematics 이산수학 () 알고리즘 (Algorithms) 0 년봄학기 강원대학교컴퓨터과학전공문양세 Algorithms The foundation of computer programming. ( 컴퓨터프로그래밍의기초 / 기반이다.) Most generally, an algorithm just means a definite procedure for performing some

More information

<B3EDB9AEC1FD5F3235C1FD2E687770>

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

More information

Microsoft PowerPoint - CHAP-03 [호환 모드]

Microsoft PowerPoint - CHAP-03 [호환 모드] 컴퓨터구성 Lecture Series #4 Chapter 3: Data Representation Spring, 2013 컴퓨터구성 : Spring, 2013: No. 4-1 Data Types Introduction This chapter presents data types used in computers for representing diverse numbers

More information

장양수

장양수 한국문학논총 제70집(2015. 8) 333~360쪽 공선옥 소설 속 장소 의 의미 - 명랑한 밤길, 영란, 꽃같은 시절 을 중심으로 * 1)이 희 원 ** 1. 들어가며 - 장소의 인간 차 2. 주거지와 소유지 사이의 집/사람 3. 취약함의 나눔으로서의 장소 증여 례 4. 장소 소속감과 미의식의 가능성 5.

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

여행기

여행기 POPL/VMCAI 2013 ROME, ITALY 2013.01.20-2013.01.26 POPL 2013. 40 POPL VMCAI, PADL, PEPM... 1. POPL,. VMCAI(International Conference on Verification, Model Checking, and Abstract Interpretation), PADL(International

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

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

본문01

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

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

untitled

untitled Math. Statistics: Statistics? 1 What is Statistics? 1. (collection), (summarization), (analyzing), (presentation) (information) (statistics).., Survey, :, : : QC, 6-sigma, Data Mining(CRM) (Econometrics)

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

<C0C7B7CAC0C720BBE7C8B8C0FB20B1E2B4C9B0FA20BAAFC8AD5FC0CCC7F6BCDB2E687770>

<C0C7B7CAC0C720BBE7C8B8C0FB20B1E2B4C9B0FA20BAAFC8AD5FC0CCC7F6BCDB2E687770> ꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚ ꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏ 儀 禮 의 社 會 的 機 能 과 變 化 李 顯 松 裵 花 玉 ꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏꠏ ꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚꠚ

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

IKC43_06.hwp

IKC43_06.hwp 2), * 2004 BK21. ** 156,..,. 1) (1909) 57, (1915) 106, ( ) (1931) 213. 1983 2), 1996. 3). 4) 1),. (,,, 1983, 7 12 ). 2),. 3),, 33,, 1999, 185 224. 4), (,, 187 188 ). 157 5) ( ) 59 2 3., 1990. 6) 7),.,.

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

하나님의 선한 손의 도우심 이세상에서 가장 큰 축복은 하나님이 나와 함께 하시는 것입니다. 그 이 유는 하나님이 모든 축복의 근원이시기 때문입니다. 에스라서에 보면 하나님의 선한 손의 도우심이 함께 했던 사람의 이야기 가 나와 있는데 에스라 7장은 거듭해서 그 비결을

하나님의 선한 손의 도우심 이세상에서 가장 큰 축복은 하나님이 나와 함께 하시는 것입니다. 그 이 유는 하나님이 모든 축복의 근원이시기 때문입니다. 에스라서에 보면 하나님의 선한 손의 도우심이 함께 했던 사람의 이야기 가 나와 있는데 에스라 7장은 거듭해서 그 비결을 새벽이슬 2 0 1 3 a u g u s t 내가 이스라엘에게 이슬과 같으리니 그가 백합화같이 피 겠고 레바논 백향목같이 뿌리가 박힐것이라. Vol 5 Number 3 호세아 14:5 하나님의 선한 손의 도우심 이세상에서 가장 큰 축복은 하나님이 나와 함께 하시는 것입니다. 그 이 유는 하나님이 모든 축복의 근원이시기 때문입니다. 에스라서에 보면 하나님의 선한

More information

Microsoft PowerPoint - AC3.pptx

Microsoft PowerPoint - AC3.pptx Chapter 3 Block Diagrams and Signal Flow Graphs Automatic Control Systems, 9th Edition Farid Golnaraghi, Simon Fraser University Benjamin C. Kuo, University of Illinois 1 Introduction In this chapter,

More information

Introduction to Geotechnical Engineering II

Introduction to  Geotechnical Engineering II Fundamentals of Computer System - chapter 9. Functions 민기복 Ki-Bok Min, PhD 서울대학교에너지자원공학과조교수 Assistant Professor, Energy Resources Engineering Last week Chapter 7. C control statements: Branching and Jumps

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

2011´ëÇпø2µµ 24p_0628

2011´ëÇпø2µµ 24p_0628 2011 Guide for U.S. Graduate School Admissions Table of Contents 02 03 04 05 06 08 09 10 11 13 15 21 LEADERS UHAK INTERNATIONAL STUDENTS SERVICE www.leadersuhak.com Leaders Uhak International Students

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

○ 제2조 정의에서 기간통신역무의 정의와 EU의 전자커뮤니케이션서비스 정의의 차이점은

○ 제2조 정의에서 기간통신역무의 정의와 EU의 전자커뮤니케이션서비스 정의의 차이점은 이동전화시장 경쟁활성화를 위한 MVNO 추진을 바라보며 김원식 1) 1. 들어가며 최근 이동전화의 무선재판매 시장 활성화 등을 위해 정보통신부가 준비한 전기통신사업 법 개정안 공청회에서 무선재판매의무제 관련규정을 둘러싸고 전문가들의 우려와 지적이 상당하였다. 우선 무선재판매 제도 도입의 배경을 살펴보자. 직접적 배경으로는 국내 이동전화 요금에 대한 이용자들의

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

1

1 1 1....6 1.1...6 2. Java Architecture...7 2.1 2SDK(Software Development Kit)...8 2.2 JRE(Java Runtime Environment)...9 2.3 (Java Virtual Machine, JVM)...10 2.4 JVM...11 2.5 (runtime)jvm...12 2.5.1 2.5.2

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

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

<BABBB9AE2E687770>

<BABBB9AE2E687770> 253 단소산조 퉁소산조 피리산조 형성시기 재검토 49) 이진원* Ⅰ. 머리말 Ⅱ. 기존 연구성과 검토 Ⅲ. 단소산조 퉁소산조 피리산조 형성시기 검토 Ⅳ. 단소산조 퉁소산조 피리산조 형성시기 재검토의 의의 Ⅴ. 맺음말 Ⅰ. 머릿말 우리나라의 대표적인 종취관악기(縱吹管樂器)에는 무황악기(無簧樂器)인 퉁소 단소가 있 고, 유황악기(有簧樂器)로 피리와 쇄납 등이

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

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

<31342D3034C0E5C7FDBFB52E687770>

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

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

Microsoft PowerPoint - 알고리즘_5주차_1차시.pptx

Microsoft PowerPoint - 알고리즘_5주차_1차시.pptx Basic Idea of External Sorting run 1 run 2 run 3 run 4 run 5 run 6 750 records 750 records 750 records 750 records 750 records 750 records run 1 run 2 run 3 1500 records 1500 records 1500 records run 1

More information

확률 및 분포

확률 및 분포 확률및분포 박창이 서울시립대학교통계학과 박창이 ( 서울시립대학교통계학과 ) 확률및분포 1 / 15 학습내용 조건부확률막대그래프히스토그램선그래프산점도참고 박창이 ( 서울시립대학교통계학과 ) 확률및분포 2 / 15 조건부확률 I 첫째가딸일때두아이모두딸일확률 (1/2) 과둘중의하나가딸일때둘다딸일확률 (1/3) 에대한모의실험 >>> from collections import

More information

영남학17합본.hwp

영남학17합본.hwp 退 溪 讀 書 詩 에 나타난 樂 의 層 位 와 그 性 格 신 태 수 * 53) Ⅰ. 문제 제기 Ⅱ. 讀 書 詩 의 양상과 樂 의 의미 층위 Ⅲ 敬 의 작용과 樂 개념의 구도 1. 敬 과 靜 味 樂 의 관계 2. 樂 개념의 구도와 敬 의 기능 Ⅳ. 樂 개념이 讀 書 詩 에서 지니는 미학적 성격 1. 樂 의 심상 체계, 그 심미안과 능동성 2. 樂 의 審 美 構

More information

<B1A4B0EDC8ABBAB8C7D0BAB8392D345F33C2F75F313032362E687770>

<B1A4B0EDC8ABBAB8C7D0BAB8392D345F33C2F75F313032362E687770> 광고에 나타난 가족가치관의 변화 : 97년부터 26년까지의 텔레비전 광고 내용분석* 2) 정기현 한신대학교 광고홍보학과 교수 가족주의적 가치관을 사회통합의 핵심 중의 핵심으로 올려놓았던 전통이 현대사회에서 아직 영향력을 미치는 점을 감안할 때, 한국에서의 가족변동은 사회전반의 변동으로 직결된다고 해도 크게 틀리지 않을 것이다. 97년부터 26년까지 텔레비전에서

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

` Companies need to play various roles as the network of supply chain gradually expands. Companies are required to form a supply chain with outsourcing or partnerships since a company can not

More information

<B3EDB9AEC1FD5F3235C1FD2E687770>

<B3EDB9AEC1FD5F3235C1FD2E687770> 오용록의 작품세계 윤 혜 진 1) * 이 논문은 생전( 生 前 )에 학자로 주로 활동하였던 오용록(1955~2012)이 작곡한 작품들을 살펴보고 그의 작품세계를 파악하고자 하는 것이다. 한국음악이론이 원 래 작곡과 이론을 포함하였던 초기 작곡이론전공의 형태를 염두에 둔다면 그의 연 구에서 기존연구의 방법론을 넘어서 창의적인 분석 개념과 체계를 적용하려는

More information

12È«±â¼±¿Ü339~370

12È«±â¼±¿Ü339~370 http://www.kbc.go.kr/ k Si 2 i= 1 Abstract A Study on Establishment of Fair Trade Order in Terrestrial Broadcasting Ki - Sun Hong (Professor, Dept. of Journalism & Mass Communication,

More information

C 프로그래밍 언어 입문 C 프로그래밍 언어 입문 김명호저 숭실대학교 출판국 머리말..... C, C++, Java, Fortran, Python, Ruby,.. C. C 1972. 40 C.. C. 1999 C99. C99. C. C. C., kmh ssu.ac.kr.. ,. 2013 12 Contents 1장 프로그래밍 시작 1.1 C 10 1.2 12

More information

untitled

untitled Push... 2 Push... 4 Push... 5 Push... 13 Push... 15 1 FORCS Co., LTD A Leader of Enterprise e-business Solution Push (Daemon ), Push Push Observer. Push., Observer. Session. Thread Thread. Observer ID.

More information

歯M991101.PDF

歯M991101.PDF 2 0 0 0 2000 12 2 0 0 0 2000 12 ( ) ( ) ( ) < >. 1 1. 1 2. 5. 6 1. 7 1.1. 7 1.2. 9 1.3. 10 2. 17 3. 25 3.1. 25 3.2. 29 3.3. 29. 31 1. 31 1.1. ( ) 32 1.2. ( ) 38 1.3. ( ) 40 1.4. ( ) 42 2. 43 3. 69 4. 74.

More information

Microsoft PowerPoint - ch10 - 이진트리, AVL 트리, 트리 응용 pm0600

Microsoft PowerPoint - ch10 - 이진트리, AVL 트리, 트리 응용 pm0600 균형이진탐색트리 -VL Tree delson, Velskii, Landis에의해 1962년에제안됨 VL trees are balanced n VL Tree is a binary search tree such that for every internal node v of T, the heights of the children of v can differ by at

More information

WRIEHFIDWQWF.hwp

WRIEHFIDWQWF.hwp 목 차 Abstract 1. 서론 2. 한국영화 흥행의 배경 2.1. 대중문화와 흥행영화 2.2. 흥행변수에 관한 조망 3. 영화 의 내러티브 특징 3.1. 일원적 대칭형 인물 설정 3.2. 에피소드형 이야기 구조 3.3. 감각적인 대사 처리 4. 시청각 미디어 환경의 영향력 4.1. 대중 매체가 생산한 기억 4.2. 기존 히트곡 사용의 위력 5. 결론 참고문헌

More information

<BFA9BAD02DB0A1BBF3B1A4B0ED28C0CCBCF6B9FC2920B3BBC1F62E706466>

<BFA9BAD02DB0A1BBF3B1A4B0ED28C0CCBCF6B9FC2920B3BBC1F62E706466> 001 002 003 004 005 006 008 009 010 011 2010 013 I II III 014 IV V 2010 015 016 017 018 I. 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 III. 041 042 III. 043

More information

Vol.257 C O N T E N T S 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

Vol.257 C O N T E N T S 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 2017.11 Vol.257 C O N T E N T S 02 06 38 52 69 82 141 146 154 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.11 3 4 2017.11 6 2017.11 1) 7 2) 22.7 19.7 87 193.2 160.6 83 22.2 18.4 83 189.6 156.2

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

슬라이드 제목 없음

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

More information

Chapter4.hwp

Chapter4.hwp Ch. 4. Spectral Density & Correlation 4.1 Energy Spectral Density 4.2 Power Spectral Density 4.3 Time-Averaged Noise Representation 4.4 Correlation Functions 4.5 Properties of Correlation Functions 4.6

More information

기본자료형만으로이루어진인자를받아서함수를결과값으로반환하는고차함수 기본자료형과함수를인자와결과값에모두이용하는고차함수 다음절에서는여러가지예를통해서고차함수가어떤경우에유용한지를설명한다. 2 고차함수의 예??장에서대상체만바뀌고중간과정은동일한계산이반복될때함수를이용하면전체연산식을간 단

기본자료형만으로이루어진인자를받아서함수를결과값으로반환하는고차함수 기본자료형과함수를인자와결과값에모두이용하는고차함수 다음절에서는여러가지예를통해서고차함수가어떤경우에유용한지를설명한다. 2 고차함수의 예??장에서대상체만바뀌고중간과정은동일한계산이반복될때함수를이용하면전체연산식을간 단 EECS-101 전자계산입문 고차함수 박성우 2008년5월 29일 지금까지정수나부동소수와같은기본적인자료형의조합을인자로받고결과값으로반환하는 함수에대해서배웠다. 이번강의에서는함수자체를다른함수의인자로이용하거나결과값으로 이용하는 방법을 배운다. 1 고차함수의 의미 계산은무엇을어떻게처리하여결과값을얻는지설명하는것으로이루어진다. 여기서 무엇 과 결 과값 은계산의대상체로서정수나부동소수와같은기본자료형의조합으로표현하며,

More information

<32303132C7D0B3E2B5B520C0DABFACB0E8BFAD20B8F0C0C7C0FBBCBAB0EDBBE72020B9AEC1A62E687770>

<32303132C7D0B3E2B5B520C0DABFACB0E8BFAD20B8F0C0C7C0FBBCBAB0EDBBE72020B9AEC1A62E687770> 언어이해력 1. 단어의 구조가 보기와 다른 것은? 4. 다음의 빈칸에 들어갈 적당한 말은? 선풍기 : 바람 = ( ) : ( ) 보리밥 은 재료+대상 의 의미 구조를 지 닌다. 따라서 보리로 만든 밥 이라는 뜻이 다. 1 발전소 : 전기 3 세탁기 : 옷 2 인쇄기 : 종이 4 자동차 : 기름 1 밀짚모자 2 유리창 3 꽃집 4 비단옷 2. 다음의 낱말 이어가기에서

More information

I&IRC5 TG_08권

I&IRC5 TG_08권 I N T E R E S T I N G A N D I N F O R M A T I V E R E A D I N G C L U B The Greatest Physicist of Our Time Written by Denny Sargent Michael Wyatt I&I Reading Club 103 본문 해석 설명하기 위해 근래의 어떤 과학자보다도 더 많은 노력을

More information

11¹Ú´ö±Ô

11¹Ú´ö±Ô A Review on Promotion of Storytelling Local Cultures - 265 - 2-266 - 3-267 - 4-268 - 5-269 - 6 7-270 - 7-271 - 8-272 - 9-273 - 10-274 - 11-275 - 12-276 - 13-277 - 14-278 - 15-279 - 16 7-280 - 17-281 -

More information

Frama-C/JESSIS 사용법 소개

Frama-C/JESSIS 사용법 소개 Frama-C 프로그램검증시스템소개 박종현 @ POSTECH PL Frama-C? C 프로그램대상정적분석도구 플러그인구조 JESSIE Wp Aorai Frama-C 커널 2 ROSAEC 2011 동계워크샵 @ 통영 JESSIE? Frama-C 연역검증플러그인 프로그램분석 검증조건추출 증명 Hoare 논리에기초한프로그램검증도구 사용법 $ frama-c jessie

More information

DBPIA-NURIMEDIA

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

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

Microsoft PowerPoint - semantics

Microsoft PowerPoint - semantics 제 3 장시맨틱스 (Semantics) Reading Chap 13 숙대창병모 Sep. 2007 1 3.1 Operational Semantics 숙대창병모 Sep. 2007 2 시맨틱스의필요성 프로그램의미의정확한이해 소프트웨어의정확한명세 소프트웨어시스템에대한검증혹은추론 컴파일러혹은해석기작성의기초 숙대창병모 Sep. 2007 3 의미론의종류 Operational

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

합격기원 2012년 12월 정기모의고사 해설.hwp

합격기원 2012년 12월 정기모의고사 해설.hwp 1 쪽 경찰학개론 -정답 및 해설- 본 문제의 소유권 및 판권은 윌비스경찰학원에 있습니다. 무단복사 판매시 저작권법에 의거 경고조치 없이 고발하여 민 형사상 책임을 지게 됩니다. 01. 3 3 경찰의 임무가 축소되면서 위생경찰, 건축경찰, 산림경찰 등처럼 다른 행정작용과 결합하여 특별한 사회적 이익의 보호를 목적으로 하면서 그 부수작용으로서 사회공공의 안녕과

More information

강의지침서 작성 양식

강의지침서 작성 양식 정보화사회와 법 강의지침서 1. 교과목 정보 교과목명 학점 이론 시간 실습 학점(등급제, P/NP) 비고 (예:팀티칭) 국문 정보화사회와 법 영문 Information Society and Law 3 3 등급제 구분 대학 및 기관 학부(과) 전공 성명 작성 책임교수 법학전문대학원 법학과 최우용 2. 교과목 개요 구분 교과목 개요 국문 - 정보의 디지털화와 PC,

More information

Microsoft PowerPoint - PL_03-04.pptx

Microsoft PowerPoint - PL_03-04.pptx Copyright, 2011 H. Y. Kwak, Jeju National University. Kwak, Ho-Young http://cybertec.cheju.ac.kr Contents 1 프로그래밍 언어 소개 2 언어의 변천 3 프로그래밍 언어 설계 4 프로그래밍 언어의 구문과 구현 기법 5 6 7 컴파일러 개요 변수, 바인딩, 식 및 제어문 자료형 8

More information

Microsoft PowerPoint - Freebairn, John_ppt

Microsoft PowerPoint - Freebairn, John_ppt Tax Mix Change John Freebairn Outline General idea of a tax mix change Some detailed policy options Importance of casting assessment in the context of a small open economy Economic effects of a tax mix

More information

2 KHU 글로벌 기업법무 리뷰 제2권 제1호 또 내용적으로 중대한 위기를 맞이하게 되었고, 개인은 흡사 어항 속의 금붕어 와 같은 신세로 전락할 운명에 처해있다. 현대정보화 사회에서 개인의 사적 영역이 얼마나 침해되고 있는지 는 양 비디오 사건 과 같은 연예인들의 사

2 KHU 글로벌 기업법무 리뷰 제2권 제1호 또 내용적으로 중대한 위기를 맞이하게 되었고, 개인은 흡사 어항 속의 금붕어 와 같은 신세로 전락할 운명에 처해있다. 현대정보화 사회에서 개인의 사적 영역이 얼마나 침해되고 있는지 는 양 비디오 사건 과 같은 연예인들의 사 연구 논문 헌법 제17조 사생활의 비밀과 자유에 대한 소고 연 제 혁* I. II. III. IV. 머리말 사생활의 비밀과 자유의 의의 및 법적 성격 사생활의 비밀과 자유의 내용 맺음말 I. 머리말 사람은 누구나 타인에게 알리고 싶지 않은 나만의 영역(Eigenraum) 을 혼자 소중히 간직하 기를 바랄 뿐만 아니라, 자기 스스로의 뜻에 따라 삶을 영위해 나가면서

More information

4 5 4. Hi-MO 애프터케어 시스템 편 5. 오비맥주 카스 카스 후레쉬 테이블 맥주는 천연식품이다 편 처음 스타일 그대로, 부탁 케어~ Hi-MO 애프터케어 시스템 지속적인 모발 관리로 끝까지 스타일이 유지되도록 독보적이다! 근데 그거 아세요? 맥주도 인공첨가물이

4 5 4. Hi-MO 애프터케어 시스템 편 5. 오비맥주 카스 카스 후레쉬 테이블 맥주는 천연식품이다 편 처음 스타일 그대로, 부탁 케어~ Hi-MO 애프터케어 시스템 지속적인 모발 관리로 끝까지 스타일이 유지되도록 독보적이다! 근데 그거 아세요? 맥주도 인공첨가물이 1 2 On-air 3 1. 이베이코리아 G마켓 용평리조트 슈퍼브랜드딜 편 2. 아모레퍼시픽 헤라 루즈 홀릭 리퀴드 편 인쇄 광고 올해도 겨울이 왔어요. 당신에게 꼭 해주고 싶은 말이 있어요. G마켓에선 용평리조트 스페셜 패키지가 2만 6900원! 역시 G마켓이죠? G마켓과 함께하는 용평리조트 스페셜 패키지. G마켓의 슈퍼브랜드딜은 계속된다. 모바일 쇼핑 히어로

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

975_983 특집-한규철, 정원호

975_983 특집-한규철, 정원호 Focused Issue of This Month Gyu Cheol an, MD Department of Otolaryngology ead & Neck Surgery, Gachon University of College Medicine E - mail : han@gilhospital.com Won-o Jung, MD Department of Otolaryngology

More information

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션 @ Lesson 2... ( ). ( ). @ vs. logic data method variable behavior attribute method field Flow (Type), ( ) member @ () : C program Method A ( ) Method B ( ) Method C () program : Java, C++, C# data @ Program

More information

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

27 2, 17-31, , * ** ***,. K 1 2 2,.,,,.,.,.,,.,. :,,, : 2009/08/19 : 2009/09/09 : 2009/09/30 * 2007 ** *** ( :

27 2, 17-31, , * ** ***,. K 1 2 2,.,,,.,.,.,,.,. :,,, : 2009/08/19 : 2009/09/09 : 2009/09/30 * 2007 ** *** ( : 27 2, 17-31, 2009. -, * ** ***,. K 1 2 2,.,,,.,.,.,,.,. :,,, : 2009/08/19 : 2009/09/09 : 2009/09/30 * 2007 ** *** (: dminkim@cau.ac.kr) 18 한국교육문제연구제 27 권 2 호, 2009. Ⅰ. (,,, 2004). (,, 2006).,,, (Myrick,

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

영남학17합본.hwp

영남학17합본.hwp 英 祖 代 戊 申 亂 이후 慶 尙 監 司 의 收 拾 策 李 根 浩 * 105) Ⅰ. 머리말 Ⅱ. 戊 申 亂 과 憂 嶺 南 說 Ⅲ. 以 嶺 南 治 嶺 南, 독자성에 토대한 통치 원칙 제시 Ⅳ. 鄒 魯 之 鄕 복원을 위한 교학 기구의 정비 Ⅴ. 상징물 및 기록의 정비 Ⅵ. 맺음말 국문초록 이 글은 영조대 무신란 이후 경상감사들이 행했던 제반 수습책을 검토 한 글이다.

More information

chap x: G입력

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

More information

44-4대지.07이영희532~

44-4대지.07이영희532~ A Spatial Location Analysis of the First Shops of Foodservice Franchise in Seoul Metropolitan City Younghee Lee* 1 1 (R) 0 16 1 15 64 1 Abstract The foodservice franchise is preferred by the founders who

More information

<30362E20C6EDC1FD2DB0EDBFB5B4EBB4D420BCF6C1A42E687770>

<30362E20C6EDC1FD2DB0EDBFB5B4EBB4D420BCF6C1A42E687770> 327 Journal of The Korea Institute of Information Security & Cryptology ISSN 1598-3986(Print) VOL.24, NO.2, Apr. 2014 ISSN 2288-2715(Online) http://dx.doi.org/10.13089/jkiisc.2014.24.2.327 개인정보 DB 암호화

More information

<BCF6BDC3323030392D31385FB0EDBCD3B5B5B7CEC8DEB0D4C5B8BFEEB5B5C0D4B1B8BBF3BFACB1B85FB1C7BFB5C0CE2E687770>

<BCF6BDC3323030392D31385FB0EDBCD3B5B5B7CEC8DEB0D4C5B8BFEEB5B5C0D4B1B8BBF3BFACB1B85FB1C7BFB5C0CE2E687770> ... 수시연구 2009-18.. 고속도로 휴게타운 도입구상 연구 A Study on the Concept of Service Town at the Expressway Service Area... 권영인 임재경 이창운... 서 문 우리나라는 경제성장과 함께 도시화가 지속적으로 진행되어 지방 지역의 인구감소와 경기의 침체가 계속되고 있습니다. 정부의 다각 적인

More information

<C7D1B9CEC1B7BEEEB9AEC7D03631C1FD28C3D6C1BE292E687770>

<C7D1B9CEC1B7BEEEB9AEC7D03631C1FD28C3D6C1BE292E687770> 설화에 나타난 사회구조와 그 의미 23) 박유미 * 차례 Ⅰ. 문제제기 Ⅱ. 서사 내부의 사회구조 Ⅲ. 사회문제의 해결방식과 그 의미 Ⅳ. 설화와 후대전승과의 상관관계 Ⅴ. 결론 국문초록 삼국유사 의 조에는 왕거인 이야기와 거타지 이야기가 하나의 설화에 묶여 전하고 있는데, 두 이야기는 해결구조에서 차이를

More information

ePapyrus PDF Document

ePapyrus PDF Document 육아지원연구 2008. 제 3권 1 호, 147-170 어린이집에서의 낮잠에 대한 교사와 부모의 인식 및 실제 이 슬 기(동작구 보육정보센터)* 1) 요 약 본 연구의 목적은 어린이집에서의 일과 중 낮잠 시간에 대한 교사와 부모의 인식 및 실제를 알아봄 으로써, 교사와 부모의 협력을 통해 바람직한 낮잠 시간을 모색해 보는 데 있었다. 연구 대상은 서울, 경기지역

More information