Computer Science - 9210 OxfordAQA

Efficiency Of Algorithms

Gbogbo ọrọ náà

Ask a class of thirty to add up the numbers from 1 to 100 and most of them start at the left and work along. One of them writes 5050 after a few seconds, because 1 and 100 make 101, and so do 2 and 99, and there are fifty such pairs. Both people solve the same problem. Both get the same answer. One did ninety-nine additions and the other did about three operations, and that gap is the entire content of this lesson.

You will learn why more than one algorithm can solve the same problem, what makes one of them more efficient than another, and how to compare two algorithms by counting the work they do rather than by timing them on a stopwatch. You will also learn where this specification stops: it asks only about time efficiency, and it never asks for a formal mathematical comparison. Knowing the boundary of a topic is worth marks, because it tells you what a question can and cannot be asking.

Ebumnobi

  1. Understand that more than one algorithm can be used to solve the same problem. Compare the efficiency of algorithms explaining how some algorithms are more efficient than others in solving the same problem.

Maapụ uche

E seela isiokwu a ka ị hụ otu echiche si ejikọta.

Mepee maapụ uche na ngwa

Akwụkwọ Ọmụmụ

A problem is a statement of what must be achieved. An algorithm is one method of achieving it. Nothing anywhere says a problem gets only one method, and in practice almost every problem worth solving has several. Finding a name in a list, sorting a set of marks, working out whether a number is prime, drawing a line on a screen: each of those has a handful of well known algorithms, and choosing between them is a real engineering decision rather than a matter of taste.

Ndetu Nkuzi Zuru Ezu di na Ngwa Green Bridge

Nweta ngwa Green Bridge CBT na ekwenti gi ma o bu kompiuta maka ulo akwukwo IGCSE zuru oke: akwukwo ule ndi gara aga, usoro nyocha, eserese uche, kaadi omumu na nkuzi olu.

Akwụkwọ ndụmọdụ zuru oke nwere eserese
Onye inyeaka mmụta AI
Ule nnwale nwere oge a na-ahazi ozugbo i mechara
Ọ dị na Android, Windows, macOS, na Linux Ngwa iOS na-abia n'oge na-adighi anya

Nnyocha Ọmụmụ

Ekele diri gi maka imecha ihe karịrị na Efficiency Of Algorithms. Ugbu a na ị na-enyochakwa isi echiche na echiche ndị dị mkpa, ọ bụ oge iji nwalee ihe ị ma. Ngwa a na-enye ụdị ajụjụ ọmụmụ dị iche iche emebere iji kwado nghọta gị wee nyere gị aka ịmata otú ị ghọtara ihe ndị a kụziri.

Ị ga-ahụ ngwakọta nke ụdị ajụjụ dị iche iche, gụnyere ajụjụ chọrọ ịhọrọ otu n’ime ọtụtụ azịza, ajụjụ chọrọ mkpirisi azịza, na ajụjụ ede ede. A na-arụpụta ajụjụ ọ bụla nke ọma iji nwalee akụkụ dị iche iche nke ihe ọmụma gị na nkà nke ịtụgharị uche.

Jiri akụkụ a nke nyocha ka ohere iji kụziere ihe ị matara banyere isiokwu ahụ ma chọpụta ebe ọ bụla ị nwere ike ịchọ ọmụmụ ihe ọzọ. Ekwela ka nsogbu ọ bụla ị na-eche ihu mee ka ị daa mba; kama, lee ha anya dị ka ohere maka ịzụlite onwe gị na imeziwanye.

  1. On this specification, exam questions about the efficiency of algorithms refer only to: A. Memory efficiency B. Network efficiency C. Storage efficiency D. Time efficiency Answer: D
  2. An algorithm takes 2 seconds on 1000 items and 8 seconds on 2000 items. Approximately how long would it take on 4000 items? A. 10 seconds B. 16 seconds C. 32 seconds D. 64 seconds Answer: C
  3. A binary search is used on a sorted list of 1000 items. What is the maximum number of comparisons it will make? A. 3 B. 10 C. 500 D. 1000 Answer: B
  4. Which statement about two algorithms that solve the same problem is correct? A. The faster algorithm is always the better choice B. Two correct algorithms must do the same amount of work C. Only one algorithm can be correct for any problem D. The faster algorithm may have a condition on the data that the slower one does not Answer: D
  5. Algorithm A adds up the numbers from 1 to N with a loop. Algorithm B calculates N * (N + 1) DIV 2. Which statement is true when N is very large? A. Algorithm A does far more work than Algorithm B B. Algorithm B does far more work than Algorithm A C. Both do the same amount of work D. Algorithm B gives a different answer Answer: A

Rue ajuju ndi a n'ime ngwa ahu

Rue ajuju ndi a n'ime ngwa ahu

Meecha Ajụjụ Ule Ọmarịcha

Ị chọrọ ime ajụjụ ule ọmarịcha gbasara Efficiency Of Algorithms? Budata ngwa Green Bridge CBT iji nweta ajụjụ ule ọmarịcha na nyocha zuru ezu gbasara isiokwu a.

Budata Ngwa Ahụ Na Google Playstore

Ihe nile ichoro iji nwee ihe ịga nke ọma na JAMB, WAEC & NECO.

Green Bridge CBT Mobile App
Onye Enyemaka Nkata AI Nke Ọmụmụ Ihe Ahaziri Maka Gị
Ajụjụ ule IGCSE, JAMB, WAEC na NECO karịrị 200,000
Ihe karịrị 1200 Nkọwa Nkuzi
Nkwado Na-enweghị Ịntanetị - Mụọ Ihe Mgbe Ọ Bụla, Ebe Ọ Bụla
Jadawalin Gada Kore
Akọkọ akọle iwe & Ibeere agbara
Sọfụma Ọrụ Gi & Ọganihu Gi
Nkọwa Miri Emi Maka Ọmụmụ Ihe Zuru Ezu