跳到主要内容

東京大学 情報理工学系研究科 創造情報学専攻 2012年8月実施 筆記試験 第1問

Author

itsuitsuki

Description

An English conversation school plans to make pairs of students and teachers for private lessons. Given a set S={s1,s2,,sn}S = \{s_1, s_2, \dots, s_n\} of students and a set T={t1,t2,,tn}T = \{t_1, t_2, \dots, t_n\} of teachers, we make disjoint nn pairs of a student and a teacher, which we call a pp-match. Answer the following questions:

(1) How many pp-matches exist?

(2) For n=5n = 5, given a list of preferable teachers by students (Table 1) V=STV = S \cup T E={xyxS,yT,x prefers y.}E = \{xy \mid x \in S, y \in T, x \text{ prefers } y.\} draw a graph G=(V,E)G = (V, E), and show a pp-match which maximizes the number of students who are fulfilled.

StudentTeachers
s1s_1t1,t3t_1, t_3
s2s_2t2,t4,t5t_2, t_4, t_5
s3s_3t1,t3t_1, t_3
s4s_4t3,t5t_3, t_5
s5s_5t1,t3t_1, t_3

Table 1: List of Preferences

(3) Let the size of a set E=m|E| = m. Show an algorithm to get a pp-match which maximizes the number of students who are fulfilled and its complexity.

(4) For n=7n = 7, given a ranked list of teachers by students (Table 2), show a pp-match which minimizes the total sum of ranks.

(5) In addition to the ranked list of teachers by students, consider a ranked list of students by teachers. Given a pp-match, if there exists no pair of student and teacher who would both get the higher rank than that of the current partner of the given pp-match, then, this pp-match is called an ss-match. For n=7n = 7, given a ranked list of students by teachers (Table 3) in addition to the Table 2, show an ss-match.

Ranking1234567
s1s_1t7t_7t1t_1t2t_2t6t_6t5t_5t4t_4t3t_3
s2s_2t7t_7t1t_1t2t_2t3t_3t4t_4t5t_5t6t_6
s3s_3t7t_7t5t_5t2t_2t6t_6t1t_1t4t_4t3t_3
s4s_4t1t_1t4t_4t3t_3t6t_6t2t_2t5t_5t7t_7
s5s_5t7t_7t3t_3t1t_1t2t_2t4t_4t5t_5t6t_6
s6s_6t3t_3t7t_7t2t_2t1t_1t5t_5t4t_4t6t_6
s7s_7t7t_7t3t_3t2t_2t6t_6t5t_5t4t_4t1t_1

Table 2: Rank of teachers by students

Ranking1234567
t1t_1s1s_1s2s_2s3s_3s4s_4s5s_5s6s_6s7s_7
t2t_2s1s_1s2s_2s4s_4s3s_3s7s_7s6s_6s5s_5
t3t_3s3s_3s2s_2s1s_1s5s_5s6s_6s4s_4s7s_7
t4t_4s2s_2s3s_3s1s_1s7s_7s4s_4s6s_6s5s_5
t5t_5s1s_1s3s_3s4s_4s2s_2s5s_5s6s_6s7s_7
t6t_6s1s_1s5s_5s3s_3s4s_4s2s_2s6s_6s7s_7
t7t_7s3s_3s5s_5s1s_1s4s_4s2s_2s7s_7s6s_6

Table 3: Rank of students by teachers

(6) For nn, show an algorithm to get an ss-match and its complexity.

(7) We will develop a real software system for private lessons for an English conversation school. List possible study items (example: web reservation), and describe each item in two lines.

本页目录