2 (concurrency) (sequentiality) cf.

Size: px
Start display at page:

Download "2 (concurrency) (sequentiality) cf."

Transcription

1 GHC / KL1 ueda@ueda.info.waseda.ac.jp Copyright (C) 2000 Kazunori Ueda

2 2 (concurrency) (sequentiality) cf.

3 3

4 4

5 5

6 5

7 6

8 7

9 ? 8 : Yes : No.

10 ? 9 : No. : Yes.

11 10 : C, C++, Lisp,... : cf....

12 11 Concurrent Logic Programming, Concurrent LP Concurrent LP = LP + directionality (of dataflow) = logic + embedded concurrency control cf. Algorithm = Logic + (external) Control (Robert Kowalski, 1979)

13 12 append([],y,y). append([a X],Y,[A Z]) :- append(x,y,z). resolution : :- append(x,y,[p,q,r]). {X=[], Y=[P,Q,R]}, {X=[P], Y=[Q,R]}, {X=[P,Q], Y=[R]}, {X=[P,Q,R], Y=[]}. Yes-No vs.

14 13 P g θ P = gθ gθ P gσ P θ σ θ σ θ

15 14 Y(append([],Y,Y)) X Y Z(append(X,Y,Z) append([a X],Y,[A Z])) = append([p],[q,r],[p,q,r]) {X=[1,2], Y=[3]} {X=[P,Q], Y=[R]}

16 15 :- append(x,y,[p,q,r]) {X=[P], Y=[Q,R]} append(x,y,z) {Z=[P,Q,R]} {X=[P], Y=[Q,R]} nondeterministic

17 1980 Relational Language Concurrent Prolog PARLOG 1985 GHC FCP Flat GHC PARLOG ALPS KL1 Strand 1990 CCP Moded Flat GHC PCN Janus AKL 16 P-Prolog Andorra Prolog CC++ timed CC Oz

18 GHC / KL1 17 cf.»»»»

19 GHC / KL

20 GHC / KL

21 GHC / KL cf. Comm. ACM, March 1993

22 One-Shot Inverter in GHC 21 not(in,out) :- In=0 Out=1. not(in,out) :- In=1 Out=0. In Out Or more concisely: not(0,out) :- true Out=1. not(1,out) :- true Out=0.

23 One-Shot NAND Gate 22 nand(0,y,out) :- true Out=1. nand(x,0,out) :- true Out=1. nand(1,1,out) :- true Out=0. X Out Y Which rule will be selected if both X and Y are 0?

24 Cascaded Inverters 23 :- module main. main :- true not(y,z), not(x,y), tty:ttystream([gett(x),putt([x,y,z]),nl]). not(0,out) :- true Out=1. not(1,out) :- true Out=0. X Y Z

25 More on Inverters 24 Inverter accepting a sequence of input data nots A sequence can be represented as a list. Examples: [0,1,1,0,1] [0,1,1,0,1 A] []

26 More on Inverters 25 nots([], Y ) :- true Y=[]. nots([0 X],Y0) :- true Y0=[1 Y], nots(x,y). nots([1 X],Y0) :- true Y0=[0 Y], nots(x,y). Or, using not, nots([], Y ) :- true Y=[]. nots([a X],Y0) :- true not(a,b), Y0=[B Y], nots(x,y).

27 More on Inverters 26 Behavior of nots(x,y) : Input Output Rest X=[0,1,1,0,1] Y=[1,0,0,1,0] (none)

28 More on Inverters 26 Behavior of nots(x,y) : Input Output Rest X=[0,1,1,0,1] Y=[1,0,0,1,0] (none) X=[] Y=[] (none)

29 More on Inverters 26 Behavior of nots(x,y) : Input Output Rest X=[0,1,1,0,1] Y=[1,0,0,1,0] (none) X=[] Y=[] (none) X=[0,1,1,0,1 X ] Y=[1,0,0,1,0 Y ] nots(x,y )

30 More on Inverters 26 Behavior of nots(x,y) : Input Output Rest X=[0,1,1,0,1] Y=[1,0,0,1,0] (none) X=[] Y=[] (none) X=[0,1,1,0,1 X ] Y=[1,0,0,1,0 Y ] nots(x,y ) (none) (none) nots(x,y)

31 More on Inverters 26 Behavior of nots(x,y) : Input Output Rest X=[0,1,1,0,1] Y=[1,0,0,1,0] (none) X=[] Y=[] (none) X=[0,1,1,0,1 X ] Y=[1,0,0,1,0 Y ] nots(x,y ) (none) (none) nots(x,y) X=[2 _] (reduction failure)

32 More on Inverters 26 Behavior of nots(x,y) : Input Output Rest X=[0,1,1,0,1] Y=[1,0,0,1,0] (none) X=[] Y=[] (none) X=[0,1,1,0,1 X ] Y=[1,0,0,1,0 Y ] nots(x,y ) (none) (none) nots(x,y) X=[2 _] X=[0 _], Y=[0 _] (reduction failure) (unification failure)

33 Factorial 27 factorial(x,y) :- X=:=0 Y:=0. factorial(x,y) :- X > 0 X1:=X 1, factorial(x1,y1), Y:=X*Y1. M=5 N=120 factorial(m,n)

34 Factorial 28 factorial(x,y) :- X=:=0 Y:=0. factorial(x,y) :- X > 0 X1:=X 1, factorial(x1,y1), Y:=X*Y1. M=5 N=120 factorial(m,n)

35 Factorial 29 factorial(x,y) :- X=:=0 Y:=0. factorial(x,y) :- X > 0 X1:=X 1, factorial(x1,y1), Y:=X*Y1. M=5 N=120 M1=4 N1=24 M1:=M 1 factorial(m1,n1) N:=M*N1

36 GHC (Guarded Horn Clauses) 30 Concurrent LP = LP + directionality (of dataflow) = logic + embedded concurrency control GHC = Horn Clauses + Guards (algorithm) (logic) (control)

37 GHC 31 h :- G B h : G, B :

38 GHC 32 h :- G B h : G, B : G : B : true

39 GHC 33 :- B KLIC main main

40 34 X X=f(Y) X=f(5) X X=1 X=2

41 35 t 1 = t 2»»»

42 36»

43 37 main :- true not(x,y), not(1,x). main :- true not(x,y), not(y,x).

44 38 main :- true not(1,x), not(2,y). 1=2 cf. main :- true not(0,x), not(1,x).

45 append 39 :- module main. main :- true append([1,2,3],[4,5],x). append([], Y,Z ) :- true Y=Z. append([a X],Y,Z0) :- true Z0=[A Z], append(x,y,z). cf. Prolog append([], Y,Y ). append([a X],Y,[A Z]) :- append(x,y,z).

46 length 40 length([], N) :- true N:=0. length([_ L0],N) :- true length(l0,n0), N:=N0+1. length(l,n) :- true length(l,0,n). length([], N0,N) :- true N:=N0. length([_ L0],N0,N) :- true N1:=N0+1, length(l0,n1,n).

47 list reversal 41 nreverse([], Lr) :- true Lr=[]. nreverse([a L0],Lr) :- true nreverse(l0,lr0), append(lr0,[a],lr). reverse(l,lr) :- true reverse(l,[],lr). reverse([], S,Lr) :- true Lr=S. reverse([a L],S,Lr) :- true reverse(l,[a S],Lr).

48 insertion sort 42 sort([], S) :- true S=[]. sort([x L0],S) :- true sort(l0,s0), insert(x,s0,s). insert(x,[], R) :- true R=[X]. insert(x,[y L], R) :- X=<Y R=[X,Y L]. insert(x,[y L0],R) :- X > Y R=[Y L], insert(x,l0,l).

49 insertion sort 43 sort([], S) :- true S=[]. sort([x L0],S) :- true sort(l0,s0), insert([x],s0,s). insert([x],[], R) :- true R=[X]. insert([x],[y L], R) :- X=<Y R=[X,Y L]. insert([x],[y L0],R) :- X > Y R=[Y L], insert([x],l0,l).

50 44 call by value»»

51 45

52 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns

53 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns Ms=[1 Ms ]

54 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns Ms=[1 Ms ] Ns=[1 Ns ]

55 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns Ms=[1 Ms ] Ns=[1 Ns ] Ms =[2 Ms ]

56 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns Ms=[1 Ms ] Ms =[2 Ms ] Ns=[1 Ns ] Ns =[3 Ns ]

57 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns Ms=[1 Ms ] Ms =[2 Ms ] Ns=[1 Ns ] Ns =[3 Ns ] Ms =[3 Ms ]

58 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns Ms=[1 Ms ] Ms =[2 Ms ] Ms =[3 Ms ] Ns=[1 Ns ] Ns =[3 Ns ] Ns =[6 Ns ]

59 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns Ms=[1 Ms ] Ms =[2 Ms ] Ms =[3 Ms ] Ns=[1 Ns ] Ns =[3 Ns ] Ns =[6 Ns ] Ms =[4 Ms ]

60 Prefix Sum 46 gen(100,ms) Ms sum(ms,ns) Ns Ms=[1 Ms ] Ms =[2 Ms ] Ms =[3 Ms ] Ms =[4 Ms ] Ns=[1 Ns ] Ns =[3 Ns ] Ns =[6 Ns ] Ns =[10 Ns ]

61 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os)

62 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300

63 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300 Ps=[2 Ps ]

64 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300 Ps=[2 Ps ] Os=[putt(2),nl Os ]

65 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300 Ps=[2 Ps ] Ps =[3 Ps ] Os=[putt(2),nl Os ]

66 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300 Ps=[2 Ps ] Ps =[3 Ps ] Os=[putt(2),nl Os ] Os =[putt(3),nl Os ]

67 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300 Ps=[2 Ps ] Ps =[3 Ps ] Ps =[5 Ps ] Os=[putt(2),nl Os ] Os =[putt(3),nl Os ]

68 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300 Ps=[2 Ps ] Ps =[3 Ps ] Ps =[5 Ps ] Os=[putt(2),nl Os ] Os =[putt(3),nl Os ] Os =[putt(5),nl Os ]

69 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300 Ps=[2 Ps ] Ps =[3 Ps ] Ps =[5 Ps ] Ps =[7 Ps ] Os=[putt(2),nl Os ] Os =[putt(3),nl Os ] Os =[putt(5),nl Os ]

70 Printing Prime Numbers 47 primes(max,ps) Ps outconv(ps,os) Os ttystream(os) Max=300 Ps=[2 Ps ] Ps =[3 Ps ] Ps =[5 Ps ] Ps =[7 Ps ] Os=[putt(2),nl Os ] Os =[putt(3),nl Os ] Os =[putt(5),nl Os ] Os =[putt(7),nl Os ]

71 Twin Primes 48 primes(max,ps) Ps twins(ps,ts) Ts Max=300 Generate a stream of twin primes up to a given number. (cf. differential programming) Ts=[twin(3,5) Ts ] Ts =[twin(5,7) Ts ] Ts =[twin(11,13) Ts ] Ts =[twin(17,19) Ts ]

72 Hamming s Problem 49 Generate an ascending sequence of natural numbers ( 1000) of the form 2 l 3 m 5 n (l, m, n 0). Do not use integer division.

73 GHC 50 (ask) (tell)

74 GHC 51

75 Prolog vs. GHC 52 Prolog LP GHC Concurrent LP

76 Tranformational vs. Reactive 53 deterministic transformational Prolog nondeterministic transformational GHC / KL1 indeterminacy reactive

77 Tranformational vs. Reactive 54 Transformational one transaction Reactive possibly many tranactions input may depend on output

78 55 primes(max,ps) Ps client(ps,...) Max=300 Ps=[2 Ps ] Ps =[3 Ps ] Ps =[5 Ps ] Ps (62) =[]

79 56 primes(max,ps) Ps client(ps,...) P=2 P =3 P =5 Ps=[P Ps ] Ps =[P Ps ] Ps =[P Ps ] P (61) =293 Ps (62) =[]

80 57 [0,1,1,2,3,5,8,...] fiblazy(ns) :- true fiblazy(,,ns). fiblazy(_, _, []) :- true true. fiblazy(n1,n2,[n3 Ns1]) :- true N3:=N1+N2, fiblazy(n2,n3,ns1).

81 58 counter(s) :- true counter(s,0). counter([],c) :- true true. counter([up(n) S],C0) :- true C:=C0+N, counter(s,c). counter([reset S],C) :- true counter(s,0). counter([show(v) S],C) :- true V:=C, counter(s,c).

82 59 up(n): N show(v): V

83 60 tty:ttystream(s) putc(c) nl putt(t) fwrite(s) getc(c) unget(c) gett(t) C T S C C T

84 61 merge([], Ys, Zs) :- true Zs=Ys. merge(xs, [], Zs) :- true Zs=Xs. merge([a Xs],Ys, Zs0) :- true Zs0=[A Zs], merge(xs,ys,zs). merge(xs, [A Ys],Zs0) :- true Zs0=[A Zs], merge(xs,ys,zs).

85 (difference lists) 62 L 1 x 1,..., x n (n 0) L 2 L 1 L 2 cf. time vs. duration, position vs. displacement x 1,..., x n x 1,..., x n? L 1 L 2 L 1 L 2

86 (difference lists) 63 L 2 (L 1,L 2 )

87 Quicksort 64 qsort(xs,ys) :- true qsort(xs,ys,[]). qsort([], Ys0,Ys ) :- true Ys=Ys0. qsort([x Xs],Ys0,Ys3) :- true part(x,xs,s,l), qsort(s,ys0,[x Ys2]), qsort(l,ys2,ys3). part(_,[], S, L ) :- true S=[], L=[]. part(a,[x Xs],S0,L ) :- A>=X S0=[X S], part(a,xs,s,l). part(a,[x Xs],S, L0) :- A < X L0=[X L], part(a,xs,s,l).

88 65 cf. Hoare 1978

89 65 cf. Hoare

90 65 cf. Hoare 1978 ins(5) 3 6 8

91 65 cf. Hoare 1978 ins(5) ins(5) 3 6 8

92 65 cf. Hoare 1978 ins(5) ins(5) ins(6) 3 5 8

93 66 cf. Hoare 1978

94 66 cf. Hoare 1978 ins(6) 3 5 8

95 66 cf. Hoare 1978 ins(6) ins(8)

96 66 cf. Hoare 1978 ins(6) ins(8)

97 Element process: n 67 elem([],r,n) :- true R=[ ]. elem([ins(m) L],R0,N) :- M < N R0=[ins(N) R], elem(l,r,m). elem([ins(m) L],R, N) :- M=:=N elem(l,r,n). elem([ins(m) L],R0,N) :- M > N R0=[ins(M) R], elem(l,r,n). elem([has(m,a) L],R, N) :- M < N A=false, elem(l,r,n). elem([has(m,a) L],R, N) :- M=:=N A=true, elem(l,r,n). elem([has(m,a) L],R0,N) :- M > N R0=[has(M,A) R], elem(l,r,n).

98 Terminator process: 68 emptyset([]) :- true true. emptyset([ins(m) L] ) :- true elem(l,r,m), emptyset(r). emptyset([has(m,a) L]) :- true A=false, emptyset(l).

99 69 store g h

100 Reduction of an Inverter 70 nots( A, B) nots([1 P], R) :- true R=[0 B ], nots(p,b ).

101 Reduction of an Inverter 71 A=[1 A ] nots( A, B) nots([1 P], R) :- true R=[0 B ], nots(p,b ).

102 Reduction of an Inverter 72 A=[1 A ] nots([1 A ],B) nots([1 P], R) :- true R=[0 B ], nots(p,b ).

103 Reduction of an Inverter 72 A=[1 A ] nots([1 A ],B) nots([1 P], R) :- true R=[0 B ], nots(p,b ).

104 Reduction of an Inverter 73 A=[1 A ] B=[0 B ] nots(a,b )

105 Reduction of an Inverter 74 A=[1 A ] B=[0 B ] nots(a,b )

106 75 not(a,b)θ (θ ={A [1 A ]}) not([1 P],R) A A B (A=[1 A ] P R(not(A,B)=not([1 P],R))) (Maher, 1987)

107 76 f, g ( ( )) f ( X, K, Xm ) = g( Y1, K, Y 1 n X を含む項 t (X 自身は除く ) に対して t = X ( ( )) 各 n 引数関数 f に対して ( f X, K, X ) = f ( Y, K, Y ) I ( X = Y )) n ( 1 n 1 n i = 1 i i 各 n 引数関数 f に対して I X = Y ) f ( X, K, X ) = ( f ( Y, K, Y )) n i = 1 ( i i 1 n 1 n )

108 77 ( X = X ) X = Y Y = X ( ) X = Y Y = Z X = Z ( ) E E S c E = ( S c)

109 78 E = ( ) S c S c (1) (2) (3) X=s(0) X=s(Y) Y=0 X=0 X=s(0) Y(X=s(Y)) X=s(0) 任意の論理式 E E ( ) = S c が成り立つならば = ( S S c) も成り立つ ( S は任意 )

110 79 c ( S c) ( ) S c false true false maybe yes true no S is inconsistent

111 80 store(x,5) load(x) store(x,6) load(x) X=5 Y=8 Z=3 M

112 81 tell(x=[2 Y]) ask(x=[ ]) tell(y=[3 Z]) ask( A(X=[2 A])) X=[2 Y] Y=[3 Z] Z=[ ] M

113 GHC 82 h :- true B GHC cf. Plotkin, G. D., A Structural Approach to Operational Semantics. DAIMI FN-19, Computer Science Dept., Aarhus Univ., Denmark, 1981.

114 GHC 83 (program) (program clause) (body) (goal) (non-unif. atom) (term) (goal clause) P C B G A T Q ::= set of C s ::= A :- (true) B ::= multiset of G s ::= T 1 =T 2 A ::= p(t 1,..., T n ), p = ::= (as in first-order logic) ::= :- B

115 GHC 84 Configuration: B, C, V B : C : V :» cf. vars(b) vars(c) V :- B 0 initial configuration: B 0, φ, vars(b 0 )

116 85 P c c : P P c c : P1 c1 c1 (if Cond ) P c c 2 2 2

117 86 V C B B C V B B P V C B C V B P,,,,,,,, U U V t t C C V t t P }, {,, }, { = = U (tell)

118 87 (ask + reduction) { h : B} U P { b}, C, V B, C U { b = h}, V U vars( h : B if E = C vars( h) b = h and vars( h : B) IV = ( ( )) )

119 88

120 89 (SIMD) (MIMD) MIMD SIMD MIMD

121 90

122 91

123 91

124 91

125 91» load, store

126 91» load, store»

127 91» load, store»»

128 92 所要時間 送信量

129 93»»»»

130 94

131 (scalability) 95?

132 (scalability) 96

133 (scalability) 96 (speedup)

134 (scalability) 96 (speedup) n

135 (scalability) 96 (speedup) n n

136 (scalability) 96 (speedup) n n (efficiency)

137 (scalability) 96 (speedup) n n (efficiency)

138 (scalability) 96 (speedup) n n (efficiency)...

139 (scalability) 96 (speedup) n n (efficiency)... super-linear speedup

140 (scalability) 97 Amdahl p 1 p p

141 AND OR 98

142 AND OR 98 AND

143 AND OR 98 AND OR

144 99

145 99

146 99 cf.

147 99 cf.

148 99 cf.

149 99 cf.

150 GHC KL1 100 GHC KL1

151 GHC KL1 101 OS KL1

152 KL1 102»»

153 KL1 103 OR»»

154 KL1 104 : alternatively : (pragma)

org/ghc/ Windows Linux RPM 3.2 GHCi GHC gcc javac ghc GHCi(ghci) GHCi Prelude> GHCi :load file :l file :also file :a file :reload :r :type expr :t exp

org/ghc/ Windows Linux RPM 3.2 GHCi GHC gcc javac ghc GHCi(ghci) GHCi Prelude> GHCi :load file :l file :also file :a file :reload :r :type expr :t exp 3 Haskell Haskell Haskell 1. 2. 3. 4. 5. 1. 2. 3. 4. 5. 6. C Java 3.1 Haskell Haskell GHC (Glasgow Haskell Compiler 1 ) GHC Haskell GHC http://www.haskell. 1 Guarded Horn Clauses III - 1 org/ghc/ Windows

More information

? FPGA FPGA FPGA : : : ? ( ) (FFT) ( ) (Localization) ? : 0. 1 2 3 0. 4 5 6 7 3 8 6 1 5 4 9 2 0. 0 5 6 0 8 8 ( ) ? : LU Ax = b LU : Ax = 211 410 221 x 1 x 2 x 3 = 1 0 0 21 1 2 1 0 0 1 2 x = LUx = b 1 31

More information

( ) P, P P, P (negation, NOT) P ( ) P, Q, P Q, P Q 3, P Q (logical product, AND) P Q ( ) P, Q, P Q, P Q, P Q (logical sum, OR) P Q ( ) P, Q, P Q, ( P

( ) P, P P, P (negation, NOT) P ( ) P, Q, P Q, P Q 3, P Q (logical product, AND) P Q ( ) P, Q, P Q, P Q, P Q (logical sum, OR) P Q ( ) P, Q, P Q, ( P Advent Calendar 2018 @Fukuso Sutaro,,, ( ) Davidson, 5, 1 (quantification) (open sentence) 1,,,,,, 1 1 (propositional logic) (truth value) (proposition) (sentence) 2 (2-valued logic) 2, true false (truth

More information

2

2 2011.11.11 1 2 MapReduce 3 4 5 6 Functional Functional Programming 7 8 9 10 11 12 13 [10, 20, 30, 40, 50] 0 n n 10 * 0 + 20 * 1 + 30 * 2 + 40 * 3 + 50 *4 = 400 14 10 * 0 + 20 * 1 + 30 * 2 + 40 * 3 + 50

More information

25 II :30 16:00 (1),. Do not open this problem booklet until the start of the examination is announced. (2) 3.. Answer the following 3 proble

25 II :30 16:00 (1),. Do not open this problem booklet until the start of the examination is announced. (2) 3.. Answer the following 3 proble 25 II 25 2 6 13:30 16:00 (1),. Do not open this problem boolet until the start of the examination is announced. (2) 3.. Answer the following 3 problems. Use the designated answer sheet for each problem.

More information

bdd.gby

bdd.gby Haskell Behavior Driven Development 2012.5.27 @kazu_yamamoto 1 Haskell 4 Mew Firemacs Mighty ghc-mod 2 Ruby/Java HackageDB 3 Haskeller 4 Haskeller 5 Q) Haskeller A) 6 7 Haskeller Haskell 8 9 10 Haskell

More information

AtCoder Regular Contest 073 Editorial Kohei Morita(yosupo) A: Shiritori if python3 a, b, c = input().split() if a[len(a)-1] == b[0] and b[len(

AtCoder Regular Contest 073 Editorial Kohei Morita(yosupo) A: Shiritori if python3 a, b, c = input().split() if a[len(a)-1] == b[0] and b[len( AtCoder Regular Contest 073 Editorial Kohei Morita(yosupo) 29 4 29 A: Shiritori if python3 a, b, c = input().split() if a[len(a)-1] == b[0] and b[len(b)-1] == c[0]: print( YES ) else: print( NO ) 1 B:

More information

¥¢¥ë¥´¥ê¥º¥à¥¤¥ó¥È¥í¥À¥¯¥·¥ç¥ó ÎØ¹Ö #1

¥¢¥ë¥´¥ê¥º¥à¥¤¥ó¥È¥í¥À¥¯¥·¥ç¥ó ÎØ¹Ö #1 #1 id:motemen August 27, 2008 id:motemen 1-3 1-5 6-9 10-14 1 2 : n < a 1, a 2,..., a n > a 1 a 2 a n < a 1, a 2,..., a n > : Google: insertion sort site:youtube.com 1 : procedure Insertion-Sort(A) for

More information

ユニセフ表紙_CS6_三.indd

ユニセフ表紙_CS6_三.indd 16 179 97 101 94 121 70 36 30,552 1,042 100 700 61 32 110 41 15 16 13 35 13 7 3,173 41 1 4,700 77 97 81 47 25 26 24 40 22 14 39,208 952 25 5,290 71 73 x 99 185 9 3 3 3 8 2 1 79 0 d 1 226 167 175 159 133

More information

1

1 2 章 1 整数を一つ読み込み, その階乗を計算する RAM プログラムを書け f (n) = n! ( n 0) 何でもよい ( n

More information

論理学入門 講義ノート email: mitsu@abelardfletkeioacjp Copyright c 1995 by the author ll right reserved 1 1 3 2 5 3 7 31 7 32 9 33 13 4 29 41 33 42 38 5 45 51 45 52 47 3 1 19 [ 1] Begin at the beginning [ 2] [

More information

1. A0 A B A0 A : A1,...,A5 B : B1,...,B12 2. 5 3. 4. 5. A0 (1) A, B A B f K K A ϕ 1, ϕ 2 f ϕ 1 = f ϕ 2 ϕ 1 = ϕ 2 (2) N A 1, A 2, A 3,... N A n X N n X N, A n N n=1 1 A1 d (d 2) A (, k A k = O), A O. f

More information

( 28 ) ( ) ( ) 0 This note is c 2016, 2017 by Setsuo Taniguchi. It may be used for personal or classroom purposes, but not for commercial purp

( 28 ) ( ) ( ) 0 This note is c 2016, 2017 by Setsuo Taniguchi. It may be used for personal or classroom purposes, but not for commercial purp ( 28) ( ) ( 28 9 22 ) 0 This ote is c 2016, 2017 by Setsuo Taiguchi. It may be used for persoal or classroom purposes, but ot for commercial purposes. i (http://www.stat.go.jp/teacher/c2epi1.htm ) = statistics

More information

Literacy 2 Mathematica Mathematica 3 Hiroshi Toyoizumi Univ. of Aizu REFERENCES [1] C.P Williams [2] [3] 1 Literacy 2 Mathematica Ma

Literacy 2 Mathematica Mathematica 3 Hiroshi Toyoizumi Univ. of Aizu REFERENCES [1] C.P Williams [2] [3] 1 Literacy 2 Mathematica Ma Mathematica 3 Hiroshi Toyoizumi Univ. of Aizu toyo@u-aizu.ac.jp REFERENCES [1] C.P Williams [2] [3] 1 Mathematica Mathematica 2 1 PKIPublic Key Infrustructure 3 4 2 5 6 3 RSA 3Ronald RivestAdi ShamirLeonald

More information

x, y x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 xy (x y) (x + y) xy (x y) (x y) ( x 2 + xy + y 2) = 15 (x y)

x, y x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 xy (x y) (x + y) xy (x y) (x y) ( x 2 + xy + y 2) = 15 (x y) x, y x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 1 1977 x 3 y xy 3 x 2 y + xy 2 x 3 + y 3 = 15 xy (x y) (x + y) xy (x y) (x y) ( x 2 + xy + y 2) = 15 (x y) ( x 2 y + xy 2 x 2 2xy y 2) = 15 (x y) (x + y) (xy

More information

「プログラミング言語」 SICP 第4章 ~超言語的抽象~ その6

「プログラミング言語」  SICP 第4章   ~超言語的抽象~   その6 SICP 4 6 igarashi@kuis.kyoto-u.ac.jp July 21, 2015 ( ) SICP 4 ( 6) July 21, 2015 1 / 30 4.3: Variations on a Scheme Non-deterministic Computing 4.3.1: amb 4.3.2: 4.3.3: amb ( ) SICP 4 ( 6) July 21, 2015

More information

5 11 3 1....1 2. 5...4 (1)...5...6...7...17...22 (2)...70...71...72...77...82 (3)...85...86...87...92...97 (4)...101...102...103...112...117 (5)...121...122...123...125...128 1. 10 Web Web WG 5 4 5 ²

More information

応用数学特論.dvi

応用数学特論.dvi 1 1 1.1.1 ( ). P,Q,R,.... 2+3=5 2 1.1.2 ( ). P T (true) F (false) T F P P T P. T 2 F 1.1.3 ( ). 2 P Q P Q P Q P Q P or Q P Q P Q P Q T T T T F T F T T F F F. P = 5 4 Q = 3 2 P Q = 5 4 3 2 P F Q T P Q T

More information

ii

ii ii iii 1 1 1.1..................................... 1 1.2................................... 3 1.3........................... 4 2 9 2.1.................................. 9 2.2...............................

More information

untitled

untitled 1 ( 12 11 44 7 20 10 10 1 1 ( ( 2 10 46 11 10 10 5 8 3 2 6 9 47 2 3 48 4 2 2 ( 97 12 ) 97 12 -Spencer modulus moduli (modulus of elasticity) modulus (le) module modulus module 4 b θ a q φ p 1: 3 (le) module

More information

2 1/2 1/4 x 1 x 2 x 1, x 2 9 3x 1 + 2x 2 9 (1.1) 1/3 RDA 1 15 x /4 RDA 1 6 x /6 1 x 1 3 x 2 15 x (1.2) (1.3) (1.4) 1 2 (1.5) x 1

2 1/2 1/4 x 1 x 2 x 1, x 2 9 3x 1 + 2x 2 9 (1.1) 1/3 RDA 1 15 x /4 RDA 1 6 x /6 1 x 1 3 x 2 15 x (1.2) (1.3) (1.4) 1 2 (1.5) x 1 1 1 [1] 1.1 1.1. TS 9 1/3 RDA 1/4 RDA 1 1/2 1/4 50 65 3 2 1/15 RDA 2/15 RDA 1/6 RDA 1 1/6 1 1960 2 1/2 1/4 x 1 x 2 x 1, x 2 9 3x 1 + 2x 2 9 (1.1) 1/3 RDA 1 15 x 1 + 2 1/4 RDA 1 6 x 1 1 4 1 1/6 1 x 1 3

More information

1 Fig. 1 Extraction of motion,.,,, 4,,, 3., 1, 2. 2.,. CHLAC,. 2.1,. (256 ).,., CHLAC. CHLAC, HLAC. 2.3 (HLAC ) r,.,. HLAC. N. 2 HLAC Fig. 2

1 Fig. 1 Extraction of motion,.,,, 4,,, 3., 1, 2. 2.,. CHLAC,. 2.1,. (256 ).,., CHLAC. CHLAC, HLAC. 2.3 (HLAC ) r,.,. HLAC. N. 2 HLAC Fig. 2 CHLAC 1 2 3 3,. (CHLAC), 1).,.,, CHLAC,.,. Suspicious Behavior Detection based on CHLAC Method Hideaki Imanishi, 1 Toyohiro Hayashi, 2 Shuichi Enokida 3 and Toshiaki Ejima 3 We have proposed a method for

More information

n 2 n (Dynamic Programming : DP) (Genetic Algorithm : GA) 2 i

n 2 n (Dynamic Programming : DP) (Genetic Algorithm : GA) 2 i 15 Comparison and Evaluation of Dynamic Programming and Genetic Algorithm for a Knapsack Problem 1040277 2004 2 25 n 2 n (Dynamic Programming : DP) (Genetic Algorithm : GA) 2 i Abstract Comparison and

More information

Microsoft PowerPoint - IntroAlgDs-05-4.ppt

Microsoft PowerPoint - IntroAlgDs-05-4.ppt アルゴリズムとデータ構造入門 2005 年 0 月 25 日 アルゴリズムとデータ構造入門. 手続きによる抽象の構築.2 Procedures and the Processes They generate ( 手続きとそれが生成するプロセス ) 奥乃 博. TUT Scheme が公開されました. Windows は動きます. Linux, Cygwin も動きます. 0 月 25 日 本日のメニュー.2.

More information

koba/class/soft-kiso/ 1 λ if λx.λy.y false 0 λ typed λ-calculus λ λ 1.1 λ λ, syntax τ (types) ::= b τ 1 τ 2 τ 1

koba/class/soft-kiso/ 1 λ if λx.λy.y false 0 λ typed λ-calculus λ λ 1.1 λ λ, syntax τ (types) ::= b τ 1 τ 2 τ 1 http://www.kb.ecei.tohoku.ac.jp/ koba/class/soft-kiso/ 1 λ if λx.λy.y false 0 λ typed λ-calculus λ λ 1.1 λ 1.1.1 λ, syntax τ (types) ::= b τ 1 τ 2 τ 1 τ 2 M (terms) ::= c τ x M 1 M 2 λx : τ.m (M 1,M 2

More information

6. Euler x

6. Euler x ...............................................................................3......................................... 4.4................................... 5.5......................................

More information

C言語によるアルゴリズムとデータ構造

C言語によるアルゴリズムとデータ構造 Algorithms and Data Structures in C 4 algorithm List - /* */ #include List - int main(void) { int a, b, c; int max; /* */ Ÿ 3Ÿ 2Ÿ 3 printf(""); printf(""); printf(""); scanf("%d", &a); scanf("%d",

More information

I: 2 : 3 +

I: 2 : 3 + I: 1 I: 2008 I: 2 : 3 + I: 3, 3700. (ISBN4-00-010352-0) H.P.Barendregt, The lambda calculus: its syntax and semantics, Studies in logic and the foundations of mathematics, v.103, North-Holland, 1984. (ISBN

More information

test.gby

test.gby Beautiful Programming Language and Beautiful Testing 1 Haskeller Haskeller 2 Haskeller (Doctest QuickCheck ) github 3 Haskeller 4 Haskell Platform 2011.4.0.0 Glasgow Haskell Compiler + 23 19 8 5 10 5 Q)

More information

ユニセフ表紙_CS6_三.indd

ユニセフ表紙_CS6_三.indd 16 179 97 101 94 121 70 36 30,552 1,042 100 700 61 32 110 41 15 16 13 35 13 7 3,173 41 1 4,700 77 97 81 47 25 26 24 40 22 14 39,208 952 25 5,290 71 73 x 99 185 9 3 3 3 8 2 1 79 0 d 1 226 167 175 159 133

More information

Part () () Γ Part ,

Part () () Γ Part , Contents a 6 6 6 6 6 6 6 7 7. 8.. 8.. 8.3. 8 Part. 9. 9.. 9.. 3. 3.. 3.. 3 4. 5 4.. 5 4.. 9 4.3. 3 Part. 6 5. () 6 5.. () 7 5.. 9 5.3. Γ 3 6. 3 6.. 3 6.. 3 6.3. 33 Part 3. 34 7. 34 7.. 34 7.. 34 8. 35

More information

,,,,., C Java,,.,,.,., ,,.,, i

,,,,., C Java,,.,,.,., ,,.,, i 24 Development of the programming s learning tool for children be derived from maze 1130353 2013 3 1 ,,,,., C Java,,.,,.,., 1 6 1 2.,,.,, i Abstract Development of the programming s learning tool for children

More information

橡ボーダーライン.PDF

橡ボーダーライン.PDF 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 ( ) 31 To be or not to be 32 33 34 35 36 37 38 ( ) 39 40 41 42 43 44 45 46 47 48 ( ) 49 50 51 52

More information

1 = = = (set) (element) a A a A a A a A a A {2, 5, (0, 1)}, [ 1, 1] = {x; 1 x 1}. (proposition) A = {x; P (x)} P (x) x x a A a A Remark. (i) {2, 0, 0,

1 = = = (set) (element) a A a A a A a A a A {2, 5, (0, 1)}, [ 1, 1] = {x; 1 x 1}. (proposition) A = {x; P (x)} P (x) x x a A a A Remark. (i) {2, 0, 0, 2005 4 1 1 2 2 6 3 8 4 11 5 14 6 18 7 20 8 22 9 24 10 26 11 27 http://matcmadison.edu/alehnen/weblogic/logset.htm 1 1 = = = (set) (element) a A a A a A a A a A {2, 5, (0, 1)}, [ 1, 1] = {x; 1 x 1}. (proposition)

More information

II 1 3 2 5 3 7 4 8 5 11 6 13 7 16 8 18 2 1 1. x 2 + xy x y (1 lim (x,y (1,1 x 1 x 3 + y 3 (2 lim (x,y (, x 2 + y 2 x 2 (3 lim (x,y (, x 2 + y 2 xy (4 lim (x,y (, x 2 + y 2 x y (5 lim (x,y (, x + y x 3y

More information

浜松医科大学紀要

浜松医科大学紀要 On the Statistical Bias Found in the Horse Racing Data (1) Akio NODA Mathematics Abstract: The purpose of the present paper is to report what type of statistical bias the author has found in the horse

More information

1 [1, 2, 3, 4, 5, 8, 9, 10, 12, 15] The Boston Public Schools system, BPS (Deferred Acceptance system, DA) (Top Trading Cycles system, TTC) cf. [13] [

1 [1, 2, 3, 4, 5, 8, 9, 10, 12, 15] The Boston Public Schools system, BPS (Deferred Acceptance system, DA) (Top Trading Cycles system, TTC) cf. [13] [ Vol.2, No.x, April 2015, pp.xx-xx ISSN xxxx-xxxx 2015 4 30 2015 5 25 253-8550 1100 Tel 0467-53-2111( ) Fax 0467-54-3734 http://www.bunkyo.ac.jp/faculty/business/ 1 [1, 2, 3, 4, 5, 8, 9, 10, 12, 15] The

More information

Pari-gp /7/5 1 Pari-gp 3 pq

Pari-gp /7/5 1 Pari-gp 3 pq Pari-gp 3 2007/7/5 1 Pari-gp 3 pq 3 2007 7 5 Pari-gp 3 2007/7/5 2 1. pq 3 2. Pari-gp 3. p p 4. p Abel 5. 6. 7. Pari-gp 3 2007/7/5 3 pq 3 Pari-gp 3 2007/7/5 4 p q 1 (mod 9) p q 3 (3, 3) Abel 3 Pari-gp 3

More information

Prolog Prolog (GNU Prolog) PROLOG (PROgramming in LOGic) 1972 A. Colmerauer LISP Bruce A. Tate 7 7 Ruby, Io, Prolog, Scala, Erlang, Clojure, and Haske

Prolog Prolog (GNU Prolog) PROLOG (PROgramming in LOGic) 1972 A. Colmerauer LISP Bruce A. Tate 7 7 Ruby, Io, Prolog, Scala, Erlang, Clojure, and Haske Prolog Prolog (GNU Prolog) PROLOG (PROgramming in LOGic) 1972 A. Colmerauer LISP Bruce A. Tate 7 7 Ruby, Io, Prolog, Scala, Erlang, Clojure, and Haskell 23 3200 GNU Prolog Prolog Prolog mg :- mgo, h2.

More information

1

1 PalmGauss SC PGSC-5G Instruction Manual PalmGauss SC PGSC-5G Version 1.01 PalmGauss SC PGSC5G 1.... 3 2.... 3 3.... 3 3.1... 3 3.2... 3 3.3 PalmGauss... 4 3.4... 4 3.4.1 (Fig. 4)... 4 3.4.2 (Fig. 5)...

More information

Handsout3.ppt

Handsout3.ppt 論理の合成 HDLからの合成 n HDLから初期回路を合成する u レジスタの分離 u 二段 ( 多段 ) 論理回路への変形 n 二段論理回路の分割 n 多段論理回路への変形 n 多段論理回路の最適化 n テクノロジマッピング u 面積, 速度, 消費電力を考慮したライブラリの割当 1 レジスタの分離 process (clk) begin if clk event and clk = 1 then

More information

haskell.gby

haskell.gby Haskell 1 2 3 Haskell ( ) 4 Haskell Lisper 5 Haskell = Haskell 6 Haskell Haskell... 7 qsort [8,2,5,1] [1,2,5,8] "Hello, " ++ "world!" "Hello, world!" 1 + 2 div 8 2 (+) 1 2 8 div 2 3 4 map even [1,2,3,4]

More information

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

1. A0 A B A0 A : A1,...,A5 B : B1,...,B 1. A0 A B A0 A : A1,...,A5 B : B1,...,B12 2. 3. 4. 5. A0 A, B Z Z m, n Z m n m, n A m, n B m=n (1) A, B (2) A B = A B = Z/ π : Z Z/ (3) A B Z/ (4) Z/ A, B (5) f : Z Z f(n) = n f = g π g : Z/ Z A, B (6)

More information

L C -6D Z3 L C -0D Z3 3 4 5 6 7 8 9 10 11 1 13 14 15 16 17 OIL CLINIC BAR 18 19 POWER TIMER SENSOR 0 3 1 3 1 POWER TIMER SENSOR 3 4 1 POWER TIMER SENSOR 5 11 00 6 7 1 3 4 5 8 9 30 1 3 31 1 3 1 011 1

More information

ポストGHCにむけて  ― 21世紀の計算モデルと実装

ポストGHCにむけて  ― 21世紀の計算モデルと実装 言語をつくる 上田和紀 ( 早稲田大学 ) JSSST 2018, August 30, 2018 なぜ言語をつくるのか 2 ( ソフトウェアでもハードウェアでも ) つくることは ( 論文読みよりも ) 楽しい つくるためのものをつくることはもっと楽しい アート, 科学, 工学が互いに支えあう接点で仕事ができる デザイン, アルゴリズム, 定理, 数値 ( 性能等 ) のすべてを相手にできる Knuth:

More information

23 The Study of support narrowing down goods on electronic commerce sites

23 The Study of support narrowing down goods on electronic commerce sites 23 The Study of support narrowing down goods on electronic commerce sites 1120256 2012 3 15 i Abstract The Study of support narrowing down goods on electronic commerce sites Masaki HASHIMURA Recently,

More information

Int Int 29 print Int fmt tostring 2 2 [19] ML ML [19] ML Emacs Standard ML M M ::= x c λx.m M M let x = M in M end (M) x c λx.

Int Int 29 print Int fmt tostring 2 2 [19] ML ML [19] ML Emacs Standard ML M M ::= x c λx.m M M let x = M in M end (M) x c λx. 1, 2 1 m110057@shibaura-it.ac.jp 2 sasano@sic.shibaura-it.ac.jp Eclipse Visual Studio ML Standard ML Emacs 1 ( IDE ) IDE C C++ Java IDE IDE IDE IDE Eclipse Java IDE Java Standard ML 1 print (Int. 1 Int

More information

4.1 % 7.5 %

4.1 % 7.5 % 2018 (412837) 4.1 % 7.5 % Abstract Recently, various methods for improving computial performance have been proposed. One of these various methods is Multi-core. Multi-core can execute processes in parallel

More information

.....Z...^.[.......\..

.....Z...^.[.......\.. 15 10 16 42 55 55 56 60 62 199310 1995 134 10 8 15 1 13 1311 a s d f 141412 2 g h j 376104 3 104102 232 4 5 51 30 53 27 36 6 Y 7 8 9 10 8686 86 11 1310 15 12 Z 13 14 15 16 102193 23 1712 60 27 17 18 Z

More information

2 1,384,000 2,000,000 1,296,211 1,793,925 38,000 54,500 27,804 43,187 41,000 60,000 31,776 49,017 8,781 18,663 25,000 35,300 3 4 5 6 1,296,211 1,793,925 27,804 43,187 1,275,648 1,753,306 29,387 43,025

More information

Microsoft Word - 03-数値計算の基礎.docx

Microsoft Word - 03-数値計算の基礎.docx δx f x 0 + δ x n=0 a n = f ( n) ( x 0 ) n δx n f x x=0 sin x = x x3 3 + x5 5 x7 7 +... x ( ) = a n δ x n ( ) = sin x ak = (-mod(k,2))**(k/2) / fact_k 10 11 I = f x dx a ΔS = f ( x)h I = f a h I = h b (

More information

FreeSpace.book

FreeSpace.book IZA 190-HZ IZA 250-LZ ZA 190-HZ ZA 250-LZ FreeSpace Integrated Zone Amplifier/Zone Amplifier * 1. 2. 3. 4. 5. 6. 7. 8. 9. 2 2 10. 11. 12. 13. 14. 15. 16. 17. 40 C This product conforms to all EU Directive

More information

DAC121S101/DAC121S101Q 12-Bit Micro Power, RRO Digital-to-Analog Converter (jp)

DAC121S101/DAC121S101Q 12-Bit Micro Power, RRO Digital-to-Analog Converter (jp) DAC121S101 DAC121S101/DAC121S101Q 12-Bit Micro Power, RRO Digital-to-Analog Converter Literature Number: JAJSA89 DAC121S101 12 D/A DAC121S101 12 D/A (DAC) 2.7V 5.5V 3.6V 177 A 30MHz 3 SPI TM QSPI MICROWIRE

More information

JFE.dvi

JFE.dvi ,, Department of Civil Engineering, Chuo University Kasuga 1-13-27, Bunkyo-ku, Tokyo 112 8551, JAPAN E-mail : atsu1005@kc.chuo-u.ac.jp E-mail : kawa@civil.chuo-u.ac.jp SATO KOGYO CO., LTD. 12-20, Nihonbashi-Honcho

More information

( )

( ) 18 10 01 ( ) 1 2018 4 1.1 2018............................... 4 1.2 2018......................... 5 2 2017 7 2.1 2017............................... 7 2.2 2017......................... 8 3 2016 9 3.1 2016...............................

More information

LM2940

LM2940 1A 3 1A 3 0.5V 1V 1A 3V 1A 5V 30mA (V IN V OUT 3V) 2 (60V) * C Converted to nat2000 DTD updated with tape and reel with the new package name. SN Mil-Aero: Order Info table - moved J-15 part from WG row

More information

WIF6002-e

WIF6002-e Installation and Operating Instructions Sartorius IF.. Standard and IF...CE Verifiable Models Flat-bed Scale 98648-012-37 2 ! 3 4 5 6 7 General View of the Equipment 2 4 1 3 5 6 1 Weighing platform 2 Handles

More information

スパコンに通じる並列プログラミングの基礎

スパコンに通じる並列プログラミングの基礎 2018.09.10 furihata@cmc.osaka-u.ac.jp ( ) 2018.09.10 1 / 59 furihata@cmc.osaka-u.ac.jp ( ) 2018.09.10 2 / 59 Windows, Mac Unix 0444-J furihata@cmc.osaka-u.ac.jp ( ) 2018.09.10 3 / 59 Part I Unix GUI CUI:

More information

SCM (v0201) ( ) SCM 2 SCM 3 SCM SCM 2.1 SCM SCM SCM (1) MS-DOS (2) Microsoft(R) Windows 95 (C)Copyright Microsoft Corp

SCM (v0201) ( ) SCM 2 SCM 3 SCM SCM 2.1 SCM SCM SCM (1) MS-DOS (2) Microsoft(R) Windows 95 (C)Copyright Microsoft Corp SCM (v0201) ( ) 14 4 20 1 SCM 2 SCM 3 SCM 4 5 2 SCM 2.1 SCM SCM 2 1 2 SCM (1) MS-DOS (2) Microsoft(R) Windows 95 (C)Copyright Microsoft Corp 1981-1996. 1 (3) C:\WINDOWS>cd.. C:\>cd scm C:\SCM> C:\SCM>

More information

add1 2 β β - conversion (λx.x + 1(2 β x + 1 x λ f(x, y = 2 x + y 2 λ(x, y.2 x + y 1 λy.2 x + y λx.(λy.2 x + y x λy.2 x + y EXAMPLE (λ(x, y.2

add1 2 β β - conversion (λx.x + 1(2 β x + 1 x λ f(x, y = 2 x + y 2 λ(x, y.2 x + y 1 λy.2 x + y λx.(λy.2 x + y x λy.2 x + y EXAMPLE (λ(x, y.2 output: 2011,11,10 2.1 λ λ β λ λ - abstraction λ λ - binding 1 add1 + add1(x = x + 1 add1 λx.x + 1 x + 1 add1 function application 2 add1 add1(2 g.yamadatakahiro@gmail.com 1 add1 2 β β - conversion (λx.x

More information

スパコンに通じる並列プログラミングの基礎

スパコンに通じる並列プログラミングの基礎 2018.06.04 2018.06.04 1 / 62 2018.06.04 2 / 62 Windows, Mac Unix 0444-J 2018.06.04 3 / 62 Part I Unix GUI CUI: Unix, Windows, Mac OS Part II 2018.06.04 4 / 62 0444-J ( : ) 6 4 ( ) 6 5 * 6 19 SX-ACE * 6

More information

Clustering in Time and Periodicity of Strong Earthquakes in Tokyo Masami OKADA Kobe Marine Observatory (Received on March 30, 1977) The clustering in time and periodicity of earthquake occurrence are investigated

More information

/ , ,908 4,196 2, ,842 38, / / 2 33 /

/ , ,908 4,196 2, ,842 38, / / 2 33 / MathWorks Automotive Conference 2014 ( ) ECU 0.1. 1 /30 1949 12 16 1,874 4 959 2 4,908 4,196 2,993 139,842 38,581 62 26 35 56 / 6 185 13 4 3 11 / 2 33 / 2014 3 31 0.1. 2 /30 ETC 0.2. 3 /30 1. 1. 2. 2.

More information

h23w1.dvi

h23w1.dvi 24 I 24 2 8 10:00 12:30 1),. Do not open this problem booklet until the start of the examination is announced. 2) 3.. Answer the following 3 problems. Use the designated answer sheet for each problem.

More information

II No.01 [n/2] [1]H n (x) H n (x) = ( 1) r n! r!(n 2r)! (2x)n 2r. r=0 [2]H n (x) n,, H n ( x) = ( 1) n H n (x). [3] H n (x) = ( 1) n dn x2 e dx n e x2

II No.01 [n/2] [1]H n (x) H n (x) = ( 1) r n! r!(n 2r)! (2x)n 2r. r=0 [2]H n (x) n,, H n ( x) = ( 1) n H n (x). [3] H n (x) = ( 1) n dn x2 e dx n e x2 II No.1 [n/] [1]H n x) H n x) = 1) r n! r!n r)! x)n r r= []H n x) n,, H n x) = 1) n H n x) [3] H n x) = 1) n dn x e dx n e x [4] H n+1 x) = xh n x) nh n 1 x) ) d dx x H n x) = H n+1 x) d dx H nx) = nh

More information

a,, f. a e c a M V N W W c V R MN W e sin V e cos f a b a ba e b W c V e c e F af af F a a c a e be a f a F a b e f F f a b e F e ff a e F a b e e f b e f F F a R b e c e f F M N DD s n s n D s s nd s

More information

Tab 5, 11 Tab 4, 10, Tab 3, 9, 15Tab 2, 8, 14 Tab 1, 7, 13 2

Tab 5, 11 Tab 4, 10, Tab 3, 9, 15Tab 2, 8, 14 Tab 1, 7, 13 2 COMPANION 20 MULTIMEDIA SPEAKER SYSTEM Owner s Guide Tab 5, 11 Tab 4, 10, Tab 3, 9, 15Tab 2, 8, 14 Tab 1, 7, 13 2 Tab1, 7, 13 Tab 2, 8, 14 Tab 3, 9, 15 Tab 4, 10, Tab 5, 11 This product conforms to all

More information

2

2 L C -24K 9 L C -22K 9 2 3 4 5 6 7 8 9 10 11 12 11 03 AM 04 05 0 PM 1 06 1 PM 07 00 00 08 2 PM 00 4 PM 011 011 021 041 061 081 051 071 1 2 4 6 8 5 7 00 00 00 00 00 00 00 00 30 00 09 00 15 10 3 PM 45 00

More information

新・明解C言語で学ぶアルゴリズムとデータ構造

新・明解C言語で学ぶアルゴリズムとデータ構造 第 1 章 基本的 1 n 141 1-1 三値 最大値 algorithm List 1-1 a, b, c max /* */ #include int main(void) { int a, b, c; int max; /* */ List 1-1 printf("\n"); printf("a"); scanf("%d", &a); printf("b"); scanf("%d",

More information

1st-session key

1st-session key 1 2013/11/29 Project based Learning: Soccer Agent Program 1 2012/12/9 Project based Learning: Soccer Agent Program PBL Learning by doing Schedule 1,2 2013 11/29 Make 2013 12/6 2013 12/13 2013 12/20 2014

More information

1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2

1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2 (GSYS2.4) GSYS2.4 Manual SUZUKI Ryusuke Hokkaido University Hospital Abstract GSYS2.4 is an update version of GSYS version 2. Main features added in this version are Magnifying glass function, Automatically

More information

1 # include < stdio.h> 2 # include < string.h> 3 4 int main (){ 5 char str [222]; 6 scanf ("%s", str ); 7 int n= strlen ( str ); 8 for ( int i=n -2; i

1 # include < stdio.h> 2 # include < string.h> 3 4 int main (){ 5 char str [222]; 6 scanf (%s, str ); 7 int n= strlen ( str ); 8 for ( int i=n -2; i ABC066 / ARC077 writer: nuip 2017 7 1 For International Readers: English editorial starts from page 8. A : ringring a + b b + c a + c a, b, c a + b + c 1 # include < stdio.h> 2 3 int main (){ 4 int a,

More information

( ) ( ) HPC SPH FPGA Web http://galaxy.u-aizu.ac.jp/trac/note/ : 1 4 : 2 6 : 3 6 GPU : ~ 100 1000 : ~ 1000-100000 Google : ~ 10000 : ~ 100000000 GPU, Cell, FPGA GRAPE-DR/GRAPE-MP ( ) GPU GPU : Matsumoto,

More information

. T ::= x f n t 1 t n F n,m (x(t 1 t n )t 1 t m) x, f n n, F n,m n, m-., F n,m (x(t 1 t n )t 1 t m), x, t 1,..., t n, t 1,..., t m. F n,m (x(t 1 t n )

. T ::= x f n t 1 t n F n,m (x(t 1 t n )t 1 t m) x, f n n, F n,m n, m-., F n,m (x(t 1 t n )t 1 t m), x, t 1,..., t n, t 1,..., t m. F n,m (x(t 1 t n ) Kazuki Nakamura Department of Mathematical and Computing Science, Tokyo Institute of Technology * 1 Kashima Ryo Department of Mathematical and Computing Science, Tokyo Institute of Technology 1,,., Σ,..,.

More information

2

2 L C -60W 7 2 3 4 5 6 7 8 9 0 2 3 OIL CLINIC BAR 4 5 6 7 8 9 2 3 20 2 2 XXXX 2 2 22 23 2 3 4 5 2 2 24 2 2 25 2 3 26 2 3 6 0 2 3 4 5 6 7 8 9 2 3 0 2 02 4 04 6 06 8 08 5 05 2 3 4 27 2 3 4 28 2 3 4 5 2 2

More information

D 24 D D D

D 24 D D D 5 Paper I.R. 2001 5 Paper HP Paper 5 3 5.1................................................... 3 5.2.................................................... 4 5.3.......................................... 6

More information

SQUFOF NTT Shanks SQUFOF SQUFOF Pentium III Pentium 4 SQUFOF 2.03 (Pentium 4 2.0GHz Willamette) N UBASIC 50 / 200 [

SQUFOF NTT Shanks SQUFOF SQUFOF Pentium III Pentium 4 SQUFOF 2.03 (Pentium 4 2.0GHz Willamette) N UBASIC 50 / 200 [ SQUFOF SQUFOF NTT 2003 2 17 16 60 Shanks SQUFOF SQUFOF Pentium III Pentium 4 SQUFOF 2.03 (Pentium 4 2.0GHz Willamette) 60 1 1.1 N 62 16 24 UBASIC 50 / 200 [ 01] 4 large prime 943 2 1 (%) 57 146 146 15

More information

Vol. 42 No MUC-6 6) 90% 2) MUC-6 MET-1 7),8) 7 90% 1 MUC IREX-NE 9) 10),11) 1) MUCMET 12) IREX-NE 13) ARPA 1987 MUC 1992 TREC IREX-N

Vol. 42 No MUC-6 6) 90% 2) MUC-6 MET-1 7),8) 7 90% 1 MUC IREX-NE 9) 10),11) 1) MUCMET 12) IREX-NE 13) ARPA 1987 MUC 1992 TREC IREX-N Vol. 42 No. 6 June 2001 IREX-NE F 83.86 A Japanese Named Entity Extraction System Based on Building a Large-scale and High-quality Dictionary and Pattern-matching Rules Yoshikazu Takemoto, Toshikazu Fukushima

More information

Y X X Y1 X 2644 Y1 Y2 Y1 Y3 Y1 Y1 Y1 Y2 Y3 Y2 Y3 Y1 Y1 Y2 Y3 Y1 Y2 Y3 Y1 X Lexis X Y X X2 X3 X2 Y2 Y1 Y1

Y X X Y1 X 2644 Y1 Y2 Y1 Y3 Y1 Y1 Y1 Y2 Y3 Y2 Y3 Y1 Y1 Y2 Y3 Y1 Y2 Y3 Y1 X Lexis X Y X X2 X3 X2 Y2 Y1 Y1 2 20 I II III 1 2 392 3 4 IV Makiko Noto / 3 3 1 1 5 52 1 2 2 2 3 9 11 5 31 1037 227 7 4 1 4 Y1 1 1 5 1965 2000 302 050 2012 autumn / No.393 051 2 5 Y1 9 9 4 X X Y1 X 2644 Y1 Y2 Y1 Y3 Y1 Y1 Y1 Y2 Y3 Y2

More information

Basic Math. 1 0 [ N Z Q Q c R C] 1, 2, 3,... natural numbers, N Def.(Definition) N (1) 1 N, (2) n N = n +1 N, (3) N (1), (2), n N n N (element). n/ N.

Basic Math. 1 0 [ N Z Q Q c R C] 1, 2, 3,... natural numbers, N Def.(Definition) N (1) 1 N, (2) n N = n +1 N, (3) N (1), (2), n N n N (element). n/ N. Basic Mathematics 16 4 16 3-4 (10:40-12:10) 0 1 1 2 2 2 3 (mapping) 5 4 ε-δ (ε-δ Logic) 6 5 (Potency) 9 6 (Equivalence Relation and Order) 13 7 Zorn (Axiom of Choice, Zorn s Lemma) 14 8 (Set and Topology)

More information

/02/18

/02/18 3 09/0/8 i III,,,, III,?,,,,,,,,,,,,,,,,,,,,?,?,,,,,,,,,,,,,,!!!,? 3,,,, ii,,,!,,,, OK! :!,,,, :!,,,,,, 3:!,, 4:!,,,, 5:!,,! 7:!,,,,, 8:!,! 9:!,,,,,,,,, ( ),, :, ( ), ( ), 6:!,,, :... : 3 ( )... iii,,

More information

MOTIF XF 取扱説明書

MOTIF XF 取扱説明書 MUSIC PRODUCTION SYNTHESIZER JA 2 (7)-1 1/3 3 (7)-1 2/3 4 (7)-1 3/3 5 http://www.adobe.com/jp/products/reader/ 6 NOTE http://japan.steinberg.net/ http://japan.steinberg.net/ 7 8 9 A-1 B-1 C0 D0 E0 F0 G0

More information

3. ( 1 ) Linear Congruential Generator:LCG 6) (Mersenne Twister:MT ), L 1 ( 2 ) 4 4 G (i,j) < G > < G 2 > < G > 2 g (ij) i= L j= N

3. ( 1 ) Linear Congruential Generator:LCG 6) (Mersenne Twister:MT ), L 1 ( 2 ) 4 4 G (i,j) < G > < G 2 > < G > 2 g (ij) i= L j= N RMT 1 1 1 N L Q=L/N (RMT), RMT,,,., Box-Muller, 3.,. Testing Randomness by Means of RMT Formula Xin Yang, 1 Ryota Itoi 1 and Mieko Tanaka-Yamawaki 1 Random matrix theory derives, at the limit of both dimension

More information

housoku.dvi

housoku.dvi : 1 :, 2002 07 14 1 3 11 3 12 : 3 13 : 5 14 6 141 6 142 8 143 8 144 8 145 9 2 10 21 10 : 2 22 11 23 11 24 11 A : 12 B 14 C 15 ( ) ( ) ( ),, (,, ) 2,, : 1 3 1 11 (t),, ρv 0 (1) t (t) ( A ) ( ) ρ (t) t +ρ

More information

II R n k +1 v 0,, v k k v 1 v 0,, v k v v 0,, v k R n 1 a 0,, a k a 0 v 0 + a k v k v 0 v k k k v 0,, v k σ k σ dimσ = k 1.3. k

II R n k +1 v 0,, v k k v 1 v 0,, v k v v 0,, v k R n 1 a 0,, a k a 0 v 0 + a k v k v 0 v k k k v 0,, v k σ k σ dimσ = k 1.3. k II 231017 1 1.1. R n k +1 v 0,, v k k v 1 v 0,, v k v 0 1.2. v 0,, v k R n 1 a 0,, a k a 0 v 0 + a k v k v 0 v k k k v 0,, v k σ kσ dimσ = k 1.3. k σ {v 0,...,v k } {v i0,...,v il } l σ τ < τ τ σ 1.4.

More information

soturon.dvi

soturon.dvi 12 Exploration Method of Various Routes with Genetic Algorithm 1010369 2001 2 5 ( Genetic Algorithm: GA ) GA 2 3 Dijkstra Dijkstra i Abstract Exploration Method of Various Routes with Genetic Algorithm

More information

() n C + n C + n C + + n C n n (3) n C + n C + n C 4 + n C + n C 3 + n C 5 + (5) (6 ) n C + nc + 3 nc n nc n (7 ) n C + nc + 3 nc n nc n (

() n C + n C + n C + + n C n n (3) n C + n C + n C 4 + n C + n C 3 + n C 5 + (5) (6 ) n C + nc + 3 nc n nc n (7 ) n C + nc + 3 nc n nc n ( 3 n nc k+ k + 3 () n C r n C n r nc r C r + C r ( r n ) () n C + n C + n C + + n C n n (3) n C + n C + n C 4 + n C + n C 3 + n C 5 + (4) n C n n C + n C + n C + + n C n (5) k k n C k n C k (6) n C + nc

More information

untitled

untitled 2004.11.18 1 3C everywhere Aoyama Morikawa Laboratory 2 3C Everywhere Computing everywhere PDA, Contents everywhere XMLmp3 1 terabyte 1 zettabyte (10 21 ) Connectivity everywhere 2G/3G/4GLAN DSL, DSRC,

More information

fx-370ES_912ES_UsersGuide_J02

fx-370ES_912ES_UsersGuide_J02 Eng Eng 3 A Eng 1 1,234 Eng a 1234= W W 2 123 Eng a 123= 1W( ) S-D S-D π 72 A S-D π π nπ n d π c a b π c π ' f ' A S-D 1 A '5c6= f f f 73 2 π A 15(π)*'2c5= f 3 ' A!2e*!3= f 74 (CMPLX) 15 CMPLX N2 A u u

More information

2007-Kanai-paper.dvi

2007-Kanai-paper.dvi 19 Estimation of Sound Source Zone using The Arrival Time Interval 1080351 2008 3 7 S/N 2 2 2 i Abstract Estimation of Sound Source Zone using The Arrival Time Interval Koichiro Kanai The microphone array

More information

TM-m30 詳細取扱説明書

TM-m30 詳細取扱説明書 M00094100 Rev. A Seiko Epson Corporation 2015. All rights reserved. 2 3 4 5 6 Bluetooth 7 Bluetooth 8 1 9 Bluetooth 10 1 11 1 2 6 5 4 3 7 12 1 13 14 ONF 1 N O O N O N N N O F N N F N N N N N N F F O O

More information

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

1. A0 A B A0 A : A1,...,A5 B : B1,...,B 1. A0 A B A0 A : A1,...,A5 B : B1,...,B12 2. 3. 4. 5. A0 A B f : A B 4 (i) f (ii) f (iii) C 2 g, h: C A f g = f h g = h (iv) C 2 g, h: B C g f = h f g = h 4 (1) (i) (iii) (2) (iii) (i) (3) (ii) (iv) (4)

More information

II A A441 : October 02, 2014 Version : Kawahira, Tomoki TA (Kondo, Hirotaka )

II A A441 : October 02, 2014 Version : Kawahira, Tomoki TA (Kondo, Hirotaka ) II 214-1 : October 2, 214 Version : 1.1 Kawahira, Tomoki TA (Kondo, Hirotaka ) http://www.math.nagoya-u.ac.jp/~kawahira/courses/14w-biseki.html pdf 1 2 1 9 1 16 1 23 1 3 11 6 11 13 11 2 11 27 12 4 12 11

More information

PowerPoint Presentation

PowerPoint Presentation 鬼はどこですか? Proositional logic (cont ) 命題論理 Reasoning where is wumus 鬼がいる場所を推理する 1 命題論理 : 意味論 semantics 論理積 A B A かつ B 論理和 A B A または B 否定 A A でない 含意 A B A ならば B を意味する 同等 A B (A ならば B) かつ (B ならば A) 命題論理では記号は命題

More information

IPSJ SIG Technical Report Vol.2016-CE-137 No /12/ e β /α α β β / α A judgment method of difficulty of task for a learner using simple

IPSJ SIG Technical Report Vol.2016-CE-137 No /12/ e β /α α β β / α A judgment method of difficulty of task for a learner using simple 1 2 3 4 5 e β /α α β β / α A judgment method of difficulty of task for a learner using simple electroencephalograph Katsuyuki Umezawa 1 Takashi Ishida 2 Tomohiko Saito 3 Makoto Nakazawa 4 Shigeichi Hirasawa

More information

00_1512_SLIMLINE_BOOK.indb

00_1512_SLIMLINE_BOOK.indb PIECE type SLIM type Imbalance value Less interference type, ideal for deep machining Ideal for drilling 2 PIECE REGULAR type Rigidity value Nozzle type When compared to the slim type, it has more rigidity

More information

HARK Designer Documentation 0.5.0 HARK support team 2013 08 13 Contents 1 3 2 5 2.1.......................................... 5 2.2.............................................. 5 2.3 1: HARK Designer.................................

More information