平成 31 年度 筑波大学大学院博士課程システム情報工学研究科コンピュータサイエンス専攻 博士前期課程 ( 一般入学試験 2 月期 ) 試験問題基礎科目 ( 数学, 情報基礎 ) Mathematics/Fundamentals of Computer Science [ 注意事項 ][Instru

Similar documents
平成 31 年度 筑波大学大学院博士課程 システム情報工学研究科 コンピュータサイエンス専攻 博士前期課程 ( 一般入学試験 8 月期 ) 試験問題基礎科目 ( 数学, 情報基礎 ) Mathematics/Fundamentals of Computer Science [ 注意事項 ][Inst

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

h23w1.dvi

Page 1 of 6 B (The World of Mathematics) November 20, 2006 Final Exam 2006 Division: ID#: Name: 1. p, q, r (Let p, q, r are propositions. ) (10pts) (a

L3 Japanese (90570) 2008

02-2-数学活用能力検査_問題_H30.indd

Quiz 1 ID#: Name: 1. p, q, r (Let p, q and r be propositions. Determine whether the following equation holds or not by completing the truth table belo

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

Level 3 Japanese (90570) 2011

soturon.dvi

H18-2.dvi

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

elemmay09.pub

2


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(

L1 What Can You Blood Type Tell Us? Part 1 Can you guess/ my blood type? Well,/ you re very serious person/ so/ I think/ your blood type is A. Wow!/ G


M-SOLUTIONS writer: yokozuna A: Sum of Interior Angles For International Readers: English editorial starts on page 7. N 180(N 2) C++ #i n

alternating current component and two transient components. Both transient components are direct currents at starting of the motor and are sinusoidal

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part


II

joho09.ppt


\615L\625\761\621\745\615\750\617\743\623\6075\614\616\615\606.PS


™…


(check matrices and minimum distances) H : a check matrix of C the minimum distance d = (the minimum # of column vectors of H which are linearly depen

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

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

鹿大広報149号

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part


How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part

LC304_manual.ai


JOURNAL OF THE JAPANESE ASSOCIATION FOR PETROLEUM TECHNOLOGY VOL. 66, NO. 6 (Nov., 2001) (Received August 10, 2001; accepted November 9, 2001) Alterna

浜松医科大学紀要


The Effect of the Circumferential Temperature Change on the Change in the Strain Energy of Carbon Steel during the Rotatory Bending Fatigue Test by Ch


西川町広報誌NETWORKにしかわ2011年1月号

.N..

How to read the marks and remarks used in this parts book. Section 1 : Explanation of Code Use In MRK Column OO : Interchangeable between the new part


Read the following text messages. Study the names carefully. 次のメッセージを読みましょう 名前をしっかり覚えましょう Dear Jenny, Iʼm Kim Garcia. Iʼm your new classmate. These ar

学部ゼミ新規申請方法 (Blackboard 9.1) Seminar Application Method for Undergraduate Seminar Courses ゼミ新規申請は Blackboard で受け付けます! 次セメスターにゼミ履修を希望する学生は 下記マニュアルに従ってゼミ

4.1 % 7.5 %

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

PowerPoint Presentation

入学検定料支払方法の案内 1. 入学検定料支払い用ページにアクセス ポータルの入学検定料支払いフォームから 入学検定料支払い用 URL の ここをクリック / Click here をクリックしてください クリックを行うと 入学検定料支払い用のページが新たに開かれます ( 検定料支払い用ページは ポ


Microsoft Word - PCM TL-Ed.4.4(特定電気用品適合性検査申込のご案内)

A Nutritional Study of Anemia in Pregnancy Hematologic Characteristics in Pregnancy (Part 1) Keizo Shiraki, Fumiko Hisaoka Department of Nutrition, Sc

自分の天職をつかめ

52-2.indb

T rank A max{rank Q[R Q, J] t-rank T [R T, C \ J] J C} 2 ([1, p.138, Theorem 4.2.5]) A = ( ) Q rank A = min{ρ(j) γ(j) J J C} C, (5) ρ(j) = rank Q[R Q,

untitled

:- Ofer Feldman,Feldman : -

161 J 1 J 1997 FC 1998 J J J J J2 J1 J2 J1 J2 J1 J J1 J1 J J 2011 FIFA 2012 J 40 56

A Feasibility Study of Direct-Mapping-Type Parallel Processing Method to Solve Linear Equations in Load Flow Calculations Hiroaki Inayoshi, Non-member

Bead Instructions First, locate the acupressure point you wish to stimulate. Next, remove a plastic bead from the bag. Remove the backing from the adh

untitled

国土技術政策総合研究所 研究資料


C FGIH C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C

P

16_.....E...._.I.v2006

126 学習院大学人文科学論集 ⅩⅩⅡ(2013) 1 2

Bull. of Nippon Sport Sci. Univ. 47 (1) Devising musical expression in teaching methods for elementary music An attempt at shared teaching

Studies of Foot Form for Footwear Design (Part 9) : Characteristics of the Foot Form of Young and Elder Women Based on their Sizes of Ball Joint Girth

On the Wireless Beam of Short Electric Waves. (VII) (A New Electric Wave Projector.) By S. UDA, Member (Tohoku Imperial University.) Abstract. A new e

Ver.1 1/17/2003 2

lagged behind social progress. During the wartime Chonaikai did cooperate with military activities. But it was not Chonaikai alone that cooperated. Al


fx-9860G Manager PLUS_J

2 10 The Bulletin of Meiji University of Integrative Medicine 1,2 II 1 Web PubMed elbow pain baseball elbow little leaguer s elbow acupun

VE-GP32DL_DW_ZA




23 Study on Generation of Sudoku Problems with Fewer Clues

Technische Beschreibung P82R SMD

Microsoft Word - Win-Outlook.docx

25 Removal of the fricative sounds that occur in the electronic stethoscope

I N S T R U M E N T A T I O N & E L E C T R I C A L E Q U I P M E N T Pressure-resistant gasket type retreat method effective bulk compressibility Fro


27 1 NP NP-completeness of Picross 3D without segment-information and that with height of one


NINJAL Research Papers No.3

BS・110度CSデジタルハイビジョンチューナー P-TU1000JS取扱説明書

GP05取説.indb

udc-2.dvi

はじめに


Journal of Geography 116 (6) Configuration of Rapid Digital Mapping System Using Tablet PC and its Application to Obtaining Ground Truth

24 Depth scaling of binocular stereopsis by observer s own movements

2017 HSC Japanese Extension

Transcription:

平成 31 年度 筑波大学大学院博士課程システム情報工学研究科コンピュータサイエンス専攻 博士前期課程 ( 一般入学試験 2 月期 ) 試験問題基礎科目 ( 数学, 情報基礎 ) Mathematics/Fundamentals of Computer Science [ 注意事項 ][Instructions] 1. 試験開始の合図があるまで, 問題の中を見てはいけません. また, 筆記用具を手に持ってはいけません. Do NOT open this booklet before the examination starts. In addition, do not have a pen in hand before the examination starts. 2. 解答用紙 ( 罫線有り ) を 3 枚, 下書き用紙 ( 白紙 ) を 1 枚配布します. You are given three answer sheets (ruled paper) and one draft sheet (blank paper). 3. 試験開始の合図のあとで, 全ての解答用紙の定められた欄に, 研究科, 専攻, 受験番号を記入すること. Fill in the designated spaces on each answer sheet with the name of the graduate school, the name of main field (department), and your examinee number after the examination starts. 4. この問題は全部で 15 ページ ( 表紙を除く ) です.1 7 ページは日本語版,9 15 ページは英語版です. This booklet consists of 15 pages, excluding the cover sheet. The Japanese version is shown on pages 1 7 and the English version on pages 9 15. 5. 問題は全部で 5 問あります. このうち,3 問選択すること. 問題ごとに解答用紙を分けて記入すること. There are five problems. Select three problems. Write your answer to each problem in a different answer sheet. 6. 解答用紙に解答を記述する際に, 問題番号を必ず明記すること. When writing the answers, clearly label the problem number on each answer sheet. 平成 31 年 1 月 31 日

I I I I v 1, v 2, v 3, v 4 v 1 = 1 2 0 1, v 2 = 3 1 1 0, v 3 = 1 5 1 2, v 4 = (1) v 1, v 2, v 3, v 4 V (2) V (3) V 5 4 2 1 1

II II II II (1) x 2/3 + y 2/3 = 1 (x 0, y 0) (a, b) (a > 0, b > 0) L L x, y P, Q (1-1), (1-2) (1-1) L (1-2) PQ (a, b) 1 (2) D D = {(x, y) x 0, y 0, x + y 1 2 I I = xy dxdy D 2

III III III III (1) Z f : Z Z Z Z y (x y) f(x, y, z) = f(f(x 1, y, z), f(y 1, z, x), f(z 1, x, y)) (x > y) g : Z Z g(x) = f(x + 1, x, x + 2) (1-1) f(2, 1, 3) (1-2) g (1-3) x Z f(x + 2, x + 1, x) = x + 2 (2) N 0 N R R = { x, y N N x mod 2 = y mod 2 x mod 3 = y mod 3 a mod b a b 0 (2-1) R (2-2) R R (2-3) a R {x N a R x [a] [3] [5] = 3

IV IV IV IV N V M E G = (V, E) 2 G N i j a i,j v i, v j V (0 i N 1, 0 j N 1) a i,j = a j,i = 1 a i,j = a j,i = 0 1 A 2 C 2 A = 0 1 1 0 0 0 0 1 0 1 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 (1) A (2) traverse start goal path visited traverse dfs step 1 (a) (e) (3) 1 (4) 1 dfs (5) 1 4

# include <stdio.h> # include < stdbool.h> # define N 7 const int a[n][n] = { {0, 1, 1, 0, 0, 0, 0, {1, 0, 1, 1, 0, 0, 0, {1, 1, 0, 0, 1, 0, 0, {0, 1, 0, 0, 1, 1, 0, {0, 0, 1, 1, 0, 0, 1, {0, 0, 0, 1, 0, 0, 0, {0, 0, 0, 0, 1, 0, 0, ; void print_ path ( int n, int path []) { for ( int i = 0; i < n; i ++) printf ("%d ", path [i ]); printf ("\n"); void dfs ( int step, int goal, int path [], bool visited []) { int x = path [ step - 1]; if (x == goal ) { print_path (step, path ); else { for ( int i = 0; i < N; i ++) { if (a[x][i] == 0) continue ; if (! visited [i]) { path [ (a) ] = i; visited [i] = (b) ; dfs ( (c), (d), path, visited ); visited [i] = (e) ; void traverse ( int start, int goal ) { int path [N]; bool visited [N]; for ( int i = 0; i < N; i ++) visited [ i] = false ; path [0] = start ; visited [ start ] = true ; dfs (1, goal, path, visited ); int main ( void ) { traverse (0, 6); return 0; 1: C 5

V V V V 1 2 1: 2: (1) b 2 b 1 b 0 a 3 a 2 a 1 a 0 (2) 2 6

(3) b 2 (4) b 2 (AND) (XOR) (NOT) a 3 a 2 a 1 a 0 1 (5) b 0 A D A D a 3 a 2 a 1 a 0 2 1 b 0 = A B + C D (6) a 3 a 2 a 1 a 0 2 b 2 b 1 b 0 1 3 OR 2 OR 2 2 OR NOT NOT AND 0 7

8

Write the answers to Problem I on one answer sheet, and clearly label it at the top of the page as Problem I. Do not write answers to other problems on the answer sheet. Problem I Answer the following questions regarding vectors v 1, v 2, v 3, v 4 below. v 1 = 1 2 0 1, v 2 = 3 1 1 0, v 3 = 1 5 1 2, v 4 = 5 4 2 1. (1) Find the dimension of the vector space V spanned by v 1, v 2, v 3, v 4. (2) Find a basis of the vector space V, and show it is a basis. (3) Find an orthogonal basis of the vector space V. 9

Write the answers to Problem II on one answer sheet, and clearly label it at the top of the page as Problem II. Do not write answers to other problems on the answer sheet. Problem II (1) Consider a tangent line L to the curve x 2/3 + y 2/3 = 1 (x 0, y 0) at a point (a, b) (a > 0, b > 0) on the curve. Let P and Q denote the points at which the tangent line L intersects the x-axis and the y-axis, respectively. Answer Questions (1-1) and (1-2) below. (1-1) Find the equation of the tangent line L. (1-2) Prove that the length of the line segment PQ is 1 for any point of tangency (a, b). (2) Define the domain D as D = {(x, y) x 0, y 0, x+y 1. Then, evaluate the following double integral I. I = D xy dxdy 10

Write the answers to Problem III on one answer sheet, and clearly label it at the top of the page as Problem III. Do not write answers to other problems on the answer sheet. Problem III (1) Let Z be the set of integers and f : Z Z Z Z be the function defined by y (x y) f(x, y, z) = f(f(x 1, y, z), f(y 1, z, x), f(z 1, x, y)) (x > y). Let g : Z Z be the function defined as g(x) = f(x + 1, x, x + 2). Answer the following questions. (1-1) Evaluate the value of f(2, 1, 3). Show the calculation steps. (1-2) Prove that the function g is bijective. (1-3) Prove that f(x + 2, x + 1, x) = x + 2 holds for any x Z. (2) Let N be the set of natural numbers (including 0) and R be the binary relation on N defined by R = { x, y N N x mod 2 = y mod 2 x mod 3 = y mod 3. Here, a mod b represents the remainder when a natural number a is divided by a natural number b 0. Answer the following questions. (2-1) Write predicate logic formulas that respectively express the reflexive, symmetric, and transitive properties of a binary relation. Also prove that the relation R satisfies all these properties. (2-2) Show that the composition R R does not satisfy the antisymmetric property by providing a counterexample. (2-3) Let [a] be the equivalence class {x N a R x of a natural number a by the equivalence relation R. Prove that [3] [5] = holds. 11

Write the answers to Problem IV on one answer sheet, and clearly label it at the top of the page as Problem IV. Do not write answers to other problems on the answer sheet. Problem IV Let us consider an undirected graph G = (V, E) consisting of a set V of N vertices and a set E of M edges. We assume that the number of edges between any two vertices is at most one, and there is no edge whose ends are the same vertex. This undirected graph G can be represented by a square matrix of order N, which is called an adjacency matrix. The element at i-th row and j-th column of this matrix is represented by a i,j. If there is an edge between two vertices v i, v j V (0 i N 1, 0 j N 1), then a i,j = a j,i = 1, otherwise a i,j = a j,i = 0. Figure 1 shows a C language program which searches all paths between two different vertices in the undirected graph represented by the following adjacency matrix A. We assume that the same vertex does not appear more than once in any path. Answer the following questions. A = 0 1 1 0 0 0 0 1 0 1 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 (1) Illustrate the undirected graph represented by the adjacency matrix A. (2) The function traverse outputs to the standard output all paths of which the start vertex is indicated by the argument start and the end vertex is indicated by the argument goal. The array path stores the vertex indices that appear in the path found by the current search in the order from the start vertex. The array visited indicates whether each vertex appears in the path. The function dfs called by the function traverse searches paths by depth first search. The argument step indicates the number of edges in the path. Fill in the boxes (a) to (e) in Figure 1 to complete the program. (3) Write the result of the output shown on the standard output when the program in Figure 1 is executed. (4) Write the number of calls to the function dfs when the program in Figure 1 is executed. (5) Given a sparse undirected graph (an undirected graph with only a few edges), it is possible to modify the program in Figure 1 to reduce its time complexity. Show the outline of the modification and the reason why it reduces the time complexity. 12

# include <stdio.h> # include < stdbool.h> # define N 7 const int a[n][n] = { {0, 1, 1, 0, 0, 0, 0, {1, 0, 1, 1, 0, 0, 0, {1, 1, 0, 0, 1, 0, 0, {0, 1, 0, 0, 1, 1, 0, {0, 0, 1, 1, 0, 0, 1, {0, 0, 0, 1, 0, 0, 0, {0, 0, 0, 0, 1, 0, 0, ; void print_ path ( int n, int path []) { for ( int i = 0; i < n; i ++) printf ("%d ", path [i ]); printf ("\n"); void dfs ( int step, int goal, int path [], bool visited []) { int x = path [ step - 1]; if (x == goal ) { print_path (step, path ); else { for ( int i = 0; i < N; i ++) { if (a[x][i] == 0) continue ; if (! visited [i]) { path [ (a) ] = i; visited [i] = (b) ; dfs ( (c), (d), path, visited ); visited [i] = (e) ; void traverse ( int start, int goal ) { int path [N]; bool visited [N]; for ( int i = 0; i < N; i ++) visited [ i] = false ; path [0] = start ; visited [ start ] = true ; dfs (1, goal, path, visited ); int main ( void ) { traverse (0, 6); return 0; Figure 1: A C language program for path-finding in the undirected graph 13

Write the answers to Problem V on one answer sheet, and clearly label it at the top of the page as Problem V. Do not write answers to other problems on the answer sheet. Problem V Given the logic circuit illustrated in Figure 2 using the logic gates in Figure 1, answer the following questions. Figure 1: Logic gates Figure 2: A logic circuit (1) Write a logical formula for each of the outputs b 2, b 1 and b 0 using the inputs a 3, a 2, a 1 and a 0. 14

(2) Write the truth table that shows the relationship between the inputs and the outputs of the logic circuit in Figure 2. (3) Complete the following Karnaugh map for b 2. (4) Write a logical formula for b 2 using only AND, XOR and NOT as logical connectives. Here, the formula may include each of a 3, a 2, a 1 and a 0 at most once. (5) Given the following formula for b 0, find the logical subformulas A to D. Here, each of A to D may include two of a 3, a 2, a 1, a 0 and their negations at most once. b 0 = A B + C D (6) We want to obtain the outputs b 2, b 1 and b 0 simultaneously when the inputs a 3, a 2, a 1 and a 0 are given simultaneously in the logic circuit in Figure 2. Explain which logic gate(s) must be inserted to the circuit, and the place where these gate(s) must be inserted. For this question: do not change the relationship between the inputs and the outputs of the logic circuit; use only the logic gate(s) in Figure 1; do not change the logic circuit except for insertion of logic gate(s). Additionally, assume the followings about the delays in the logic circuit: the delay of a three-input OR is twice as large as a two-input OR; a two-input OR has the same delay as NOT; the delays of NOT and AND are not zero; the delays of logic gates of the same type are equivalent; wire delay is so small as to be negligible. 15