• Sonuç bulunamadı

Lecture 22

N/A
N/A
Protected

Academic year: 2021

Share "Lecture 22"

Copied!
10
0
0

Yükleniyor.... (view fulltext now)

Tam metin

(1)

Oktay ¨OLMEZ

(2)

Counting

A list is an ordered sequence of objects. A list is denoted by an opening parenthesis, followed by the objects, separated by commas, followed by a closing parenthesis. For example (a, b, c, d , e) is a list consisting of the first five letters of the English alphabet, in order. The objects a, b, c, d , e are called the entries of the list; the first entry is a, the second is b, and so on. If the entries are rearranged we get a different list, so, for instance,

(a, b, c, d , e) 6= (b, a, c, d , e).

(3)

Unlike sets, lists can have repeated entries. Thus (5, 3, 5, 4, 3, 3) is a perfectly acceptable list, as is (S , O, S ). The length of a list is its number of entries. So (5, 3, 5, 4, 3, 3) has length six, and (S , O, S ) has length three.

(4)

Counting

abcd abdc acbd acdb adbc adcb bacd badc bcad bcda bdac bdca cabd cadb cbad cbda cdab cdbc dabc dacb dbac dbca dcab dcba a b c d b c d a c d a b d a b c c d d c b d d b b c c b c d d c a d d a a c c a b d d b a d d a a b b a b c c b a c c a a b b a

(5)
(6)

Imagine the list as containing four boxes that we fill with selections from

the lettersA, B, C, D, E, FandG, as illustrated below.

,

,

,

(

)

7 choice 7 choice 7 choice 7 choice

(7)

,

,

,

,

,

,

,

,

,

,

,

,

6 choice 6 choice 6 choice 6 choice

5 choice 5 choice 5 choice 5 choice 4 choice 4 choice 4 choice 4 choice

(8)

E E E E

Kind 1 Kind 2 Kind 3 Kind 4

6 5 4 6 5 4 6 5 4 6 5 4

(9)

0 ( ) 1

1 a a 1

2 a, b ab, ba 2

3 a, b, c abc, acb, bac, bca, cab, cba 6

4 a, b, c, d

abcd , acbd , bacd , bcad , cabd , cbad ,

abdc, acdb, badc, bcda, cadb, cbda,

adbc, adcb, bdac, bdca, cdab, cdba,

dabc, dacb, dbac, dbca, dcab, dcba,

24 ..

(10)

abc acb bac bca cab cba

abd adb bad bda dab dba

acd adc cad cda dac dca

bcd bdc cbd cdb dbc dcb

Referanslar

Benzer Belgeler

Bu yazıda, suisidal amaçlı yüksek doz çoklu ilaç alımı olan 28 haftalık gebe bir epilepsi hastası ile bu hastaya yaklaşım ve tedavi süreci sunulmuştur..

o After the removal of milk at milking time, the cycles of milk secretion and discharge are rapid, filling the lumina of the alveoli, the ducts and storage spaces of the duct

As an application, it is shown that the existence of an unbounded factorized operator for a triple of K¨othe spaces, under some additonal asumptions, causes the existence of a

[4] used minimally invasive approaches and robotic resections for their patients with a retrosternal goiter, but we preferred to use a transcervical resection

Buna göre, Güneş ve Dünya’yı temsil eden malzemeleri seçerken Güneş için en büyük olan basket topunu, Dünya için ise en küçük olan boncuğu seçmek en uygun olur..

Anadolu Üniversitesi Açıköğretim Sistemi 2016 - 2017 Güz Dönemi Dönem Sonu SınavıA. ULUSLARARASI

According to Özkalp, with the most common definition family is an economic and social institution which is made up of the mother, father and children and the

As a result of long studies dealing with gases, a number of laws have been developed to explain their behavior.. Unaware of these laws or the equations