Grade

Subject

Type of questions

IT Senior High

情報:高3 [ウ]の部分がなぜ③になるのか分かりません。 iが 1〜kazu-1 になるから jは 0〜kazu-2 までは考えられたのですが、ここから kazu-2 が kazu-1-i になるのはなぜでしょうか、、教えてください🙇🏻

次の生徒 (S) と先生 (T) の会話文を読み, 空欄 ア 解答群のうちから一つずつ選べ。 キ に入れるのに最も適当なものを、後の SAG (A) (6) T:データを昇順または降順に並べ替えるアルゴリズムのことをソートといいます。まずはじめに、バブルソー トというアルゴリズムを考えてみましょう。バブルソートは、配列の中の隣り合うデータの大小を比較し交 換を繰り返す方法です。 図1は、10個の要素を持つ配列 Data に対してバブルソートを行う場合の流れを 表しています。 グラムの4258 まず、配列の先頭とその次の要素を比較し,左の方が大きければ右と交換する。これを一つずつずらしなが ら配列の最後尾まで繰り返していき、最後尾まで繰り返したら1周目の比較が終了します。 S: つまり, 1周目の比較がすべて終了した段階で、配列の最後尾にはア | が入っているのですね。 T:その通りです。 2周目は、配列のイ を除いて1周目と同じように比較していきます。 これを繰り返 して,最後には配列が並び変わっているという具合ですね。図2はバブルソートのプログラムを表してい ます。 その通りです (SI) し 配列 Data 77 52 89 48 97 3 18 62 33 29 1周目/ 1回目の比較 が配列の中 77 52 89 48 97 3 18 62 33 29 交換する 1周目/ 2回目の比較 52 77 89 48 97 3 18 62 33 29 交換しない 4357 1周目/3回目の比較 52 77 89 48 97 交換する 3 18 62 33 29 図1 配列 Data に対するバブルソートの流れ 国の (1) (2) (3) (4) (5) (6)b Data = [77,5289,48,973 18,62,33,291 kazu= 要素数 (Data) JRS pin iを1からkazu-1まで1ずつ増やしながら繰り返す: inshid jを0から ウ まで1ずつ増やしながら繰り返す: もしData[j] > Data [j + 1] ならば: hokan エ Data[j] ① <[abia] ada rabid k == [abis) stad 0000 Data(+11 Anda > (7) (8) (7) Data[j + 1] = hokan 図2 バブルソートのプログラム (hidaes mig) S:図2のプログラムだと, もし仮に最初からデータが昇順に並んでいても, 配列 Data の場合と同じ回数だけ 比較を繰り返さないといけないですよね? T:いいところに気が付きましたね。 最初から昇順に整列された配列をバブルソートすると、交換回数は オ だけど比較回数は ので効率が悪いです。 それでは, データの整列が完了した段階で繰り返 しを抜けるように図1のプログラムを修正してみましょう。 まず, 変数 koukan を用意して初期化してお きます(図3の (3) 行目)。 次に, 交換が発生した場合, 変数 koukan に 「1」 を代入するようにしましょ (図3の (10) 行目)。 さて、ここで図4のプログラムを,図3のプログラムのどこに挿入すればいいか 分かりますか? S:繰り返しが1周終わるごとに変数 koukan の値を確認する必要がありますから、 T: 正解です! よくできました。 キ だと思います。 98 第3章 コンピュータとプログラミング もし kouk

Waiting for Answers Answers: 0
English Senior High

至急⚠️ 奇数の問題の答え合わせをしたいです。 なぜその答えになるのかも教えていただきたいです。 よろしくお願いします。

EXERCISE A >> 空所に入れるのに最も適切なものを選びなさい。 of gabilat S 01 It is difficult ( ) the English exam. ①in passing ge2 to passed 3 to pass 4 pass 〈福岡大〉 ni miwa S to talk 2 talking 02 The young woman had no one ( ) with about her future. 3 of talking to have talked (*) 03 Susan opened the box, ( 2 next 1 but ) to find it empty. 3 only 4 soon lig 〈立教大〉 04 His grandfather lived ( ) ninety-two and was the head of the company for many years. 1 being 3 for being 105 2 to be 4 till he would be BE <東海大 > er It was careless (b) him to forget to lock the door. top bolid W 1 for 2 of 3 with on 08 4 to a don <*> 06 My friends were warned ( ) the mountain in such bad weather. 3 of no climbing to climb 〈センター試験〉 Din climbing 2 not to climb 107 Half of the houses on the island are said ( ①having 2 to be being 3 to have ) damaged by the typhoon. 4 to have been() of warts 80 The boy turned on his father's computer, though he had been told ( 〈 青山学院大 〉 ). 08 1 not do it 2 not to 3 to do not 4 to not 09 The textbook is ( 9D ①easy enough ) for a college student to read. 2 so easy as 3 so easy that 4 such easy (***) The 10 Mr. Smith doesn't know ( 1 way to use 3 the way of use ) a computer and is afraid to touch one. 2 how he should to use 4 how to use <東京経済大 〉 11 I can't decide ( I to if ) go to Australia or New Zealand. 2 whether ③3 whether to 4 to whether <福岡大〉 12 To begin ( 1 from ), let's have a look at Chapter 5. 2 by 3 for 4 with 〈九州産業大〉 □13 To ( ) the truth, I still haven't finished my homework. 1 say 2 tell 3 speak 4 mention 〈大阪学院大 〉 05 95 不定詞

Waiting for Answers Answers: 0
English Senior High

英語の長文です どこに文法表現があるか知りたいです! よろしくお願いします。

5 UNIT3 Reading Passage 10 15 20 20 25 30 Listening When important events are happening around the world, most people turn to traditional media sources, such as CNN and BBC,¹ for their news. However, during the invasion of Iraq by the United States and its allies in early 2003, a significant number of people followed the war from the point of view of an anonymous² Iraqi citizen who called himself "Salam Pax" (salam means "peace" in Arabic, and pax means "peace" in Latin). Salam Pax wrote a diary about everyday life in Baghdad during the war, and posted it on his web site. Pax's online diary was a kind of web site known as a "blog." Blogs, short for "web-logs," are online diaries usually kept by individuals, but sometimes they are written by companies and other groups of people. They are a rapidly growing type of web site on the Internet. There are estimated to be several hundred thousand blogs on the Internet, and with the popularity of other social media sites, the number of people writing online about their lives continues to grow. may find A blog differs from a traditional web site in several ways. Most importantly, it is updated much more regularly. Many blogs are updated every day, and some are updated several times a day. Also, most blogs use special software or web sites which are specifically aimed at bloggers, so you do not need to be a computer expert to create your own blog. This means that ordinary people who computers difficult to use can easily set up and start writing their own blog. In 2003, the Internet company AOL³ introduced their own blogging service, enabling its 35 million members to quickly and easily start blogging. There are many different kinds of blogs. The most popular type is an online diary of links, where the blog writer surfs the Internet and then posts links to sites or news articles that they find interesting, with a few comments about each one. Other types are personal diaries, where the writer talks about their life and feelings. Sometimes these blogs can be very personal. There is another kind of blogging, called "moblogging," short for "mobile blogging." Mobloggers use cell phones to take photo's, which are posted instantly to the Internet. When the content and images posted online involve news subjects, mobloggers become citizen journalists. In fact, the Korean web site OhMyNews was a well known source for articles from international citizen journalists. However, in 2010, OhMyNews stopped posting new articles. Instead, it is now a blog site where citizen journalists can choose what makes the headlines, or just share ideas about how regular people are changing the news world. Anyone who visits the web site of a big media company can clearly see how the idea of blogging has changed the reporting of news. Quite often, a list of reader comments follow news articles. It seems that the news is becoming less like a report or a lecture, and more like a conversation, where anyone can join in. CNN, BBC Cable News Network, British Broadcasting Corporation anonymous not named; unknown 3 AOL America Online

Waiting for Answers Answers: 0
English Senior High

英語の長文です。 文法表現のあるところが知りたいです。 よろしくお願いします。

UNIT 1 5 Reading Passage 10 15 20 20 25 Listening There are more than 37,000 known species of spiders in the world in a wide variety of shape's and sizes! The largest spiders in the world live in the rain forests of South America and are known by the people who live there as the "bird-eating spiders." These spiders can grow up to 28 centimeters in length- about the size of a dinner plate, and, as their name suggests, have been known to eat small birds. In comparison, the smallest species of spider in the world is native to Western Samoa. These tiny spiders are less than half a millimeter long — about the size of a period on this page and live in plants that grow on mountain rocks. - Some people like to keep spiders as pets, particularly tarantulas, which are native to North America and can live for up to twenty-five years, Most people, on the other hand, do not like touching spiders, and a significant number of people are afraid of them, mainly because of their poison. However, despite their bad reputation, only thirty of the 37,000 known species of spiders are deadly to humans. Spiders actually provide benefits to humans, by catching and eating harmful insects such as flies and mosquitoes. - - The main thing that makes spiders different from other animals is that they spin web's to catch the small insects they feed on. The unique silk of a spider's web is produced by special organs found spider web is five times in the lower part of the spider's body. It is light, elastic, and strong stronger than steel. Additionally, it is completely biodegradable. This means that the web will making it perfect for uses completely decompose¹ and eventually return to nature over time such as making fishing nets. Some people have tried to raise spiders commercially in order to collect the silk these spiders produce, but no one has ever really managed to make a go of it. One reason why these businesses never stand a chance is because it takes 670,000 spiders to produce half a kilogram of silk, and all of these spiders need living insects for their food. In addition, spiders are usually solitary² animals, and need to be kept alone. Researchers at an American company working together with two U.S. universities may have found a solution to making artificial spider web. Using genetically modified silkworms,³ the company hopes that in the long run it will be able to make large quantities of very light, very strong fiber for medical as well as other uses. Additionally, because the manufacture of the artificial web is from living silkworms, the industry potentially would be non-polluting and less harmful to the environment

Waiting for Answers Answers: 0