Mrs. James works in a book store. She has been assigned the task of rearranging all information technology books on a particular shelf in proper order at the end of each day. What would be her best choice for a sorting algorithm?
Bubble Sort Insertion Sort Selection Sort Heapsort None of these ------------- ジェームス婦人は書店で働いている。彼女は毎日終業時まで、 特定の本棚のIT関連の本を適切な順番に並びかえる仕事を している。下記のうち、どのアルゴリズムを使って並びか えるのが最適か?
20 passengers are to travel on a train which can accommodate 13 in the upper berth and 7 in the lower deck. How many ways can they be assigned berths if 5 refuse to be booked in the upper berth and 8 refuse to be booked in the lower berth?
25 21 18 15 None of these -------------- 20人の乗客が乗っている寝台列車がある。上の寝台が13、 下の寝台が7つ空いている。しかし、20人のうち5人は 上の寝台に寝るのが嫌で、8人は下の寝台が嫌な場合、 希望の寝台を割り振ると何通りの組み合わせがあるか。
John travels to Gotham everyday for his work. His wife picks him up at the train station each evening at exactly 6 PM. One day, he left work early, and arrived at the train station at 5 PM. He started walking home, but he met his wife en route to the station and got into the car. They drove home and arrived 10 minutes earlier than usual. How long did the man have to walk before he was picked up by his wife?
How many plates can be placed on a table where the diameter of the table is 15 times that of the plates? The plates can not overlap each other or the edge of the table.
187 225 200 150 None of these ------------------- お皿をテーブルの上に並べるとする。テーブルの直径はお皿の直径の15倍。 何枚のお皿を並べられるか? お皿は重ねられないし、テーブルのふちにも置けない。 たぶん、テーブルもお皿もまん丸なんだろうな。
Let S be the set of strings defined by the regular expression (abb*c)* . Which of the following regular expressions defines a set of strings which is a subset of S?
a*b*c* (a*b*c*)* (aabb*cc)* (aabb*c)* None of the above --------------- Sは正規表現 (abb*c)* という文字列だ。下記のうち、Sのサブセットとして 定義される正規表現の文字列は?
60 students take tests in French and Astrology. 40 pass in French and 30 in Astrology. If X is the number of students who pass in both subjects then what is the range of possible values of X ?
10 ≦ X ≦ 30 X = 10 X ≧ 10 X < 60 30 ≦ X ≦ 40 ------------- 60人の生徒が英語と保健体育のテストを受けている。40人が英語の テストに受かり、30人が保健体育のテストに受かった。Xは英語と 保健体育の両方に受かった人数とすると、Xのとりうる範囲は?
A box contains 2 green, 3 red and 4 yellow marbles. If after each selection the marble is replaced, what is the probability of drawing a green, a red and then a yellow marble (in order)?
8/243 4/27 8/247 1/729 Can't be determined ---------- 箱の中に緑玉2個、赤玉3個、黄玉4個が入っている。そこから玉を抜き取っていった とき、緑、赤、黄色の順で取り出す確率は?
In a certain factory, there are 100 workers who have 3 commuting options: their own vehicle, company bus, and public transport. 50 workers use the company bus, 70 use their own vehicle, and 60 use the public transport. 10 workers use only the company bus or their own vehicle and avoid the public transport. 5 workers do not have their own vehicle and hence use the other two only, while 25 workers do not live on the route of the company bus and hence use either the public transport or their own vehicle. 20 workers use all forms of transportation. How many workers commute by own vehicle?
An insurance company has written 2 fire insurance policies of $50,000, 4 of $25,000, and 9 of $10,000. If the probability of a fire is 1/1000 per year, how much can the company expect to pay during the first year of the policies?
$85 $290 $1275 0 None of these ----- ある保険会社は50000ドルの火災保険を2件、25000ドルの火災保険を4件、 10000ドルの火災保険9件を請け負っている。もし火災が起きる確率が1年に 1/1000だったとすると、保険会社は最初の1年に払わなければならない 期待値はいくらか?
78 名前:デフォルトの名無しさん[] 投稿日:04/03/26 01:07 実際の問題16 A bag contains 5 brown and 4 white socks. A man pulls out two socks. What is the probability that they are the same color?
5/108 1/6 5/18 4/9 None of these ------ かばんの中に5足の茶色い靴下と4足の白い靴下が入っている。 この中から2つの靴下を取り出したとき、それらが同じ色である確率は?
There are 25 stations on a railroad line. At each of the 25 stations the passengers can get tickets for any of the other 24 stations. How many different kinds of tickets do you think have to be printed?
80 名前:デフォルトの名無しさん[] 投稿日:04/03/26 01:18 実際の問題18 Which of the following is not true?
The set of rational numbers is an abelian group under addition. The set of rational integers is an abelian group under addition. The set of rational numbers form an abelian group under multiplication. The set of rational integers form an abelian group under multiplication. None of these ------------- どれがウソ?
実際の問題20 A daughter, a Mom, and a grandmother were asked about their ages. Mom answered "our ages are prime numbers in which i) the average of ANY TWO of the numbers is a prime and ii) the average of all three of the numbers is a prime." What were their ages?
11,29,61 11,47,71 7,29,71 13,37,79 none of the above ------------- 娘、母、祖母がいて、年齢を聞いてみた。母の答えは、 「私たちの年齢は素数よ。しかも、どの2人の年齢の平均を とっても素数になるし、3人の年齢の平均も素数だわ」 彼女らの年齢は?
実際の問題22 A large tank with volume V is full of milk. Nine gallons are drawn from the tank and it is then filled with water. Again, nine gallons of liquid are drawn from the tank and it is again filled up with water. If the ratio of milk to
water is 16/9 at this stage, what is the value of V?
18 gallons 45 gallons 27 gallons 5 gallons None of these -------- でかいタンクに牛乳が満タン入っている。9リットルをタンクから 抜き出し、その分、水で薄める。さらに、そこから9リットル取り 出して、その分、水で薄める。もし、そのときのミルクと水の 割合が16:9だとすると、このタンクの容量は?
実際の問題26 Which grammar will generate {(ab)^n | n ≧ 1} ∪ {(ba)^n | n ≧ 1}?
S→S1,S1→abS1,S1→ab,S→S2,S2→baS2,S2→ba S→S1,S1→aS1,S1→ab,S→S2,S2→bS2,S2→bc S→S1,S1→S2,S2→S1a,S1→ab,S2→ba None of these Can't be determined --------- どの文法が {(ab)^n | n ≧ 1} ∪ {(ba)^n | n ≧ 1} を作成する?
実際の問題26 Bill threw a party and borrowed 100 glasses from his friend. He sent his son John to pick up the glasses from his friend's place. Just to give an extra incentive, he offered John 3 cents for every glass brought safely and told him he would deduct 9 cents for every glass he broke. After John returned, Bill gave him $2.40. How many glasses did John break ?
間違えた。27だ... 実際の問題27 Bill threw a party and borrowed 100 glasses from his friend. He sent his son John to pick up the glasses from his friend's place. Just to give an extra incentive, he offered John 3 cents for every glass brought safely and told him he would deduct 9 cents for every glass he broke. After John returned, Bill gave him $2.40. How many glasses did John break ?
実際の問題28 In an election for the class leader, half the number of students voted for Janet and two-thirds voted for Mary. 10 voted for both and 6 did not vote for either. How many students were there in all?
60 24 36 18 None of these ------- 学級委員を決めるのに、半分の生徒がジャネットに、2/3の生徒が メリーに投票した。10人は両方に投票し、6人はどちらにも投票 しなかった。何人の生徒がいる? ※ 昨日のThe Student Dayで複数のチームに投票した人っている?
実際の問題29 Which of the following statements is true?
An acyclic graph is a directed graph with no cycles. An acyclic graph is a weighted graph with cycles. An acyclic graph is a directed graph with cycles. An acyclic graph is neither wieghted nor directed. None of the above. ------------ どれがホント?
実際の問題32 In a family there are several children. Each boy has as many sisters as brothers but each girl has twice as many brothers as sisters. How many brothers and sisters are in that family?
実際の問題33 In a local soccer league, this year's participation increased 10% over last year. The number of men increased by 5% and the number of women increased by 20%. What is the ratio of female participation to total participation?
強引にやるとか int i, j, n; for (n = 2; n < 1000; n++) { j = f(n); for (i = 2; i < j; i++) { if (j%i==0) break; } if (i == j) { printf("%d : %d\n", n, j); } }
A point(x,y) is an integer point if both x and y are integers. Given an array of integer points, print any two point such that their mid-point is an integer point. The mid-point may not belong to the input. The best algorithm runs in
O(n^2) O(n) with a storage of O(n) O(constant) with a storage of O(n) O(constant) O(n) with no storage ------------ 格子点の配列が与えられて、その中点も格子点であるならばそれを表示する。 そのような中点は入力には含まれていないとする。 効率的なアルゴリズムは次のオーダーで動く。
One of ten different furbies was randomly placed into each box of some type of cereal. If a mother decided to buy this cereal for her children until she obtained at least one of each of the ten different furbies, what is the number of boxes of cereal that she is expected to purchase?
Consider a forest of disjoint sets on which one is able to perform typical "find" and "union" operations. If the sets contain a total of m members, what best describes the worst-case time for a sequence of s find and union operations? > T(m) > T(s) > T(m log s) > T(s log m) > T(ms)
Consider the equation: x^4 - 9(x^3) + 33(x^2) + 14x + 24 = 0 Which of the following is true? > The equation has four real solutions. > The equation has three real solutions and one imaginary solution. > The equation has two real solutions and two imaginary solutions. > The equation does not have any real solution. > None of these ---------------------------------------- 結局、普通にフェラーリの解法で、 2つの実数解と2つの虚数解を求めたんだけど、こんなもん時間内に解けるか!?
2n sticks of different sizes are randomly divided into two subgroups containing n stick each. What is the probability that the two biggest sticks are in different groups? > n/(2n-1) > (n-1)/(2n-1) > (2n-1)/4(n^2) > None of these > Can't be determined ---------------------------------------- サイズの異なる2nのスティックが、無作為にふたつのグループに分けられている (それぞれnスティック)。最も大きい2つのスティックが違うグループに 分けられている可能性は? ----------------------------------------
Two cars are 90 miles apart, and start driving towards each other. One at a speed of 15 miles pr. Hour and the other at 25 miles pr. Hour. At the same time a fly starts from the slower car, flying 40 miles an hour towards the faster car. At the moment when the fly reaches the other car it turns around (instantly - no speed loss) and flies back towards the first car. Every time the fly reaches a car it turns around. By the time the cars drive into each other, the fly is crushed. What is the distance the fly put back on his last journey? > 90 miles > 45 miles > 60 miles > 15 miles
You are dealt these four cards from a deck of fifty-two playing cards: 3 4 5 and 6. What are the chances that one more card will give you a pair (two of a kind) ?
1 out of 2 1 out of 3 2 out of 7 4 out of 13 None of above
A certain town is server by two hospitals. In the large hospital, about 45 babies are born each day. In the smaller one, about 15 babies are bone each day. Althought they overall proportion of girls is about 50%, the actual propotion at either hospital may be greater or less on any day. At the end of a year, which hospital will have the greater number od days on which more than 60% of the babies born were girls?
the large hospital the small hospital neither -- the number of these days will be about the same neither -- the number of these days will be exactly the same ------------ 二つの市立病院があり、それぞれの病院で一日に生まれる赤ん坊は、 大きいほうはおよそ45人、小さいほうはおよそ15人である。 また、女の赤ん坊が生まれる割合はどちらも50%程度であるが、 その割合は日によって違う。 一年のうち、女の赤ん坊が生まれる割合が60%を超える日が多いのはどちらか?
P and Q are two independent events. The probability that both P and Q occur is 1/6 and the probability that neither of them occurs is 1/3. What is the probability of P?
A student committee at a university consists of 2 students from the math department, 3 from the english department, and 4 from the history department. The president of the university wants to reduce the committee size by 3 and chooses 3 committee members at random to remove. What is the probability that the three chosen are all from different departments? 1/24 1/8 1/4 None of these Can be determined ----------------------------- ----------------------------- 大学の学生委員会は数学部からの2人の学生、英語部からの3、および歴史部からの4から成ります。 大学の学長は、委員会のサイズを3つ減少させたくて、取り外すために無作為に3人の委員を選びます。 選ばれた3がすべて異なった部からあるという確率はどのくらいですか?
A pirate ship capture a treasure of 1000 golden coins.The treasure has to be split amoung the 5 pirates: 1,2,3,4,and 5 in order of rank. The lowest ranking pirate (5) can make a proposal on how to split up the treasure.This proposal can eather be accepter or the pirate is thrown overboard. A proposal is accsepted if and only if a majority of pitrate agrees on it. If 5 is thrown overboard, the next lowest ranking pirate (4) can make a propoasal. The pirate have the following important characteristics:(i) infinitely smart; (ii) bloodthirsty; (iii) greedy. What proposal should pirate 5 make?
Let (Z,*) be an algebraic structure, where Z is the set of integers and the operation * is defined by p*q = max (p,q). Which of the following statements is true for (Z,*)?
(Z,*) is a monoid (Z,*) is an non-abelian group (Z,*) is a group (Z,*) is an abelian group None of these
↓のような問題は英語が苦手だと厳しい。For exampleが(無駄に?)多い。 Consider a war game in which each player controls an individual soldier unit on the battle field. Each soldier's accuracy is measured by anumber in the range[2-12].when the soliderfires, twoevenly weighted six-sided dice are rolled, and their individual results are added together. If the total result isless than or equal to the solider's accuracy score, the shot hits the intended target. For example, if asolider with an accuracy of 8 fires, arollof (2,4) will hit his target (2+4=6), and a roll of(4,5) will miss(4+5=9). In this context of game, a player with an accuracy rating of 6 is offerred the choice of two improvements to his solider. The first improvement will subtract a fixed inteeger,n,from the result of every attack roll total. For example,if n=1,the player would still hit his target with a roll of(4,3). The second improvement will allow the player to roll three dice instead of two on every attack, and choose only the lowest two dice to compute his attack roll total. For example ,a solider with this improvement rolling(4,5,2) would have an attack roll total of 6. For what values of n does the first improvement offer a greater benefit to the player than the second improvement .
Three numbers are selected at random without replacement from the set of numbers { 1, 2, ..., N}. What is the conditional probability that the third number lies between the first two numbers if the first number is known to be smaller than the second ?
John is sitting in a stationary car. In the car there is a helium-filled balloon, which is resting up against the cars ceiling somewhere near the middle. John hits the pedal and the car accelerates forward. John is thrown back into his seat and the balloon floats towards the front of the car. What physical phenomenon would you attribute the balloon's movement to?
Inertia Buoyancy Gravity Frictional Force None of these ------------ ジョンは静止した車の中に座っている。車の中にはヘリウムの風船があり、 天井の中心付近で漂っている。ジョンは急発進して前方に加速した。 ジョンはその勢いで座席の後ろに飛ばされ、風船は前方へ飛んでいった。 風船の移動にはどの物理現象がかかわっているでしょうか?
How many mixed-double tennis teams can be formed from seven married couples if no husband and wife play on the same team? 210 420 840 None of these Can be determined
Consider an arithmetic progression that starts at zero. If the sum of this progression is the same for n as for m terms (where n ≠ m), then what will be the sum of (n + m) terms? 0 n+m 2n + m 1 None of these
Given a regular tetrahedron (6 equal edges, 4 faces, 4 vertices), 3 blind spiders and I smart bug. All spiders start from the same vertex and follow a known (to all spiders and the bug) algorithm. Spiders are slightly faster then the bug. One can only travel on the edges. Can the spiders always catch the bug?
No, because this reduces to NP complete problem. No. There is no deterministic solution. It is not NP complete. Yes, because it can be reduced to a simple loop with one spider chasing the bug and the spider is faster than the bug. It is not possible to tell since we do not know how slow the bug is as compared to spiders. Yes, if and only if the bug is along any edge that starts with the vertex from which spiders start.
Eighteen guys are to manage two tasks, clearing the coffee cups and scrubbing the snack bar. They put slips numbered 1 to18 in a hat and decide that anyone who draws a number divisible by 3 will be assigned the coffee cup task and anyone who draws a number divisible by 5 will be assigned to the snack bar cleaning. The first person draws a 4, the second a 3, and the third a 11. What is the probability that the fourth person to draw will be assigned to clearing the coffee cups? 1/5 1/6 1/3 2/15 4/18
How many plates can be placed on a table where the diameter of the table is 15 times that of the plates? The plates can not overlap each other or the edge of the table. 187 225 200 150 None of these
Consider a hash table of size x containing y elements which uses probing for collision resolution. What is the worst-case time required to find an element? T(y) T(x) T(y/x) T(x/y) T(x+y)
You are dealt these four cards from a deck of fifty-two playing cards: 3 4 5 and 6. What are the chances that one more card will give you a pair (two of a kind)?
1 out of 2. 1 out of 3 2 out of 7 4 out of 13 none of the above
To find out the biggest number and the smallest number in 1024 unsorted numbers, what is the minimum number of comparisons required in worst case? 1024 1280 1536 1792 2048
The number of steps executed by an algorithm is given by the recurrence T(n)=4T(n/4)+n^2. What is this alogrithm's time complexity? Θ(n^2) Θ(n^2 log n) Θ(n^3) Θ(n^3 log n) None of the above
Consider the following mystery function: int MysteryFunc(unsigned char val) { if (!(val >> 1)) return val; return (val (val & 0xFE)) + MysteryFunc((val & 〜1)-(val >> 1)); } What does it return?
The value of the most significant bit in val The number of bits set to 0 in val The number val divided by two The number of consecutive bits in val set to 0 The number of bits set to 1 in val
Consider four ropes of different lentgh. Their average length is 74 inches and the difference in lengths amongst the first three ropes is 2 inches. The difference between the third and the fourth rope is six inches. What is the length of the fourth rope? 80 inches 75 inches 82 inches 78 inches 90 inches
Suppose you have a graph that is 3-colorable; that is, you can assign each vertex a color, red,blue, or green, such that no two adjacent vertices have the same color. Which of the following can you conclude?
The graph is bipartite The graph is planar The graph is 2-colorable The graph is 4-colorable Both b and d ---------------------- 3色で塗り分けられるグラフがある。塗り分けられるとは頂点に3種類の色を割り当て、 つながっている頂点には同じ色を使わないということが可能という意味である。 それでは次のどれが結論付けられるか?
For an undirected graph G we call a path a sequence of vertices v1,.....vn such that vi is connected to vi+1 for all i=1,........n-1. The path is called simple if all vertices v1,........vn are distinct. A graph is called connected when for each two vertices there is at least one path connecting them. A set of simple paths of G is called a path cover if each vertex of G belongs to at least one of these paths. Let pc(G) be the smallest number of paths in a path cover of G(i.e. there is a path cover with pc(G) paths and every path cover has at least pc(G) paths). Let log denote the logarithm of base 2 and sqrt denote the square root. Consider these statements, which are the correct ones?
For all connected graphs G with n>1 vertices we have.........
Given a regular tetrahedron (6 equal edges, 4 faces, 4 vertices), 3 blind spiders and I smart bug. All spiders start from the same vertex and follow a known (to all spiders and the bug) algorithm. Spiders are slightly faster then the bug. One can only travel on the edges. Can the spiders always catch the bug?
No, because this reduces to NP complete problem. No. There is no deterministic solution. It is not NP complete. Yes, because it can be reduced to a simple loop with one spider chasing the bug and the spider is faster than the bug. It is not possible to tell since we do not know how slow the bug is as compared to spiders. Yes, if and only if the bug is along any edge that starts with the vertex from which spiders start.
A chauffeur always arrives at the train station at five o'clock sharp to pick up his boss and drive him home. One day, the boss arrives an hour early, starts walking home, and is eventually piocked up. he is home 20 minutes earlier than usual. How long did the boss walk before he was picked up by hte chauffeur? 20 minutes 30 minutes 40 minutes 45 minutes 50 minutes
John travels to Gotham everyday for his work. His wife picks him up at the train station each evening at exactly 6 PM. One day, he left work early, and arrived at the train station at 5 PM. He started walking home, but he met his wife en route to the station and got into the car. They drove home and arrived 10 minutes earlier than usual . How long did the man have to walk before he was picked up by his wife? 55 minutes 45 minutes 35 minutes 25 minutes 57 minutes
>>287 There are 3000 bananas but you need to move them a 1000 miles across a desert. There is a camel but it eats 1 banana every mile, and can carry only 1000 bananas at a time. What is the max # of numbers of bananas that you can get to the final destination?
In the United States, how many times will a car wheel typically rotate in 1 minute of travel at freeway (60 miles per hor) speeds? 100 300 1000 3000 10000
Given a standard telephone keypad (2-ABC, 3-DEF, 4-GHI, 5-JKL, 6-MNO, 7-PRS, 8-TUV, 9-WXY), what is the maximum number of letter combinations of 3 to 7 letters inclusive that can be made from a standard 7 digit telephone number? 327 4024 4833 63215 None of the above
Nine chairs are numbered 1 to 9. Two women and three men each want to sit down in a chair. First the women choose chairs from amongst the chairs marked 1 to 5. Afterwards, the men select chairs from those remaining. How many possible seating arrangements are there? Recall that xCy means x!/(y!(x-y)!) and xPy means x!/(x-y)!. 4C3 x 5C2 5P2 x 7P3 5P2 x 4P3 5C2 x 6P3 None of these
Can you find the next three terms in the series shown below? 23, 31, 41, 59, 71, 83, 97, 109, ?, ?, ?, ... A 119, 131, 149 B 117, 129, 131 C 131, 157, 173 D 131, 173, 199
Say you have a traditional binary heap with n elements. How much time is required to perform the "DecreaseKey" operation corresponding to Dijkstra's algorithm? O(1) O(log log n) O(log n) O(n) O(n log n)
In a custom microchip processing plant, workers shape 1 gram packages of Silicon semiconductor material into custom microprocessor wafers. During the manufacturing process, not all the Silicon is used. For every five wafers the plant fabricates, there is enough extra Silicon to make one additional wafer. Suppose a worker is presented with 25 grams of Silicon. What is the maximum number of wafers she can make?
What is the maximum number of comparisons required to determine the median of an (unordered) set of 5 elements? 5 3 5!/2 6 5! ------------- 5つの要素(同不順)の中点を決定するために必要とされる比較は最大何回か?
ありえなさそうな名前は 6 Conan Edogawa Teitan Highschool Japan 13 Mika Nakashima Ritsumeikan University Japan 69 Square Enix Ryukoku University Japan 69 Nanako Matsushima Ritsumeikan University Japan 149 Demento Capcom Japan こんなもんかなぁ…芸能人と同姓同名は可能性として否定はしないが Square Enixて。
>>422 there will be a leader list provided at the end of the round showing name, country, school, and score, similar to what was provided at the end of the first round. we are not planning to have an ongoing leaderboard or a level-wise leaderboard however.