Хаггарти р дискретная математика для программистов, издание 2 е (мир программирования) 2012

Embed Size (px)

DESCRIPTION

 

Text of Хаггарти р дискретная математика для программистов,...

  • .

    2012

    ,

    2,

    ..

    .. ,

    .. , ..

  • 519.854 22.176 1313 .

    2-,

    : , 2012. 400 ., ISBN 978-5-94836-303-5

    , - . , , - . , , , . , - . ( ) .

    , , - .

    , , , -.

    519.854 22.176

    Pearson Education Limited 2002 This translation of DISCRETE MATHEMATICS FOR COMPUTING, First Edition is published by arrangement with Pearson Education Limited. 2012, , , ,-,

    ISBN 978-5-94836-303-5ISBN 0-201-73047-2 (.)

  • ................................................ 6

    .................................................................. 9

    1.

    ........................................................................ 11

    1.1. ............................................................ 11

    1.2. ................................................................... 14

    1 ........................................................... 19

    .................................................. 21

    2.

    ............................................. 23

    2.1. ................................................. 23

    2.2. ................................................. 27

    2.3. .................................................. 30

    2.4. ............................................. 32

    2 ........................................................... 35

    .................................................. 38

    . ................................ 39

    3.

    .......................................................... 44

    3.1. .................................... 44

    3.2. ........................................................ 51

    3.3. ...................................... 53

    3 ........................................................... 58

    .................................................. 61

    . .................................... 63

    4.

    .................................................................... 68

    4.1. .................................................... 68

    4.2. ..................................................... 73

    4.3. .......... 77

    4 ........................................................... 82

    .................................................. 85

    . .................. 86

    5.

    ........................................................................ 91

    5.1. ................ 91

    5.2. ..................................................................... 96

    5.3. ...................... 102

    5.4. ......................................................... 105

  • 4

    5 ........................................................... 108

    .................................................. 112

    . ....... 113

    6.

    . ............................................................ 117

    6.1. ...................................... 117

    6.2. .............................................. 120

    6.3. ........................................................... 128

    6 ........................................................... 131

    .................................................. 135

    . .............................. 136

    7.

    ............................................................................ 141

    7.1. .................................................. 142

    7.2. .................................................... 147

    7.3. ....................................................................... 152

    7 ........................................................... 158

    .................................................. 163

    . ......................................... 165

    8.

    ............................................ 171

    8.1. ............................................... 171

    8.2. .......................................................... 175

    8.3. ......................................................... 181

    8 ........................................................... 184

    .................................................. 187

    . .................................. 189

    9.

    ............................................................. 194

    9.1. ............................................................. 194

    9.2. ............................................................... 200

    9.3. ................................................. 205

    9 ........................................................... 208

    .................................................. 211

    . 2- ................ 212

    ................................................... 217

    .................................. 275

    .1. ......................................... 275

    .1.1. -

    ........................................................... 277

  • 5

    .1.2.

    .................................................................. 278

    .1.3.

    ............................................. 279

    .2. ................................................... 281

    .2.1. , 282

    .2.2. ............................. 286

    .3. ........................................................ 288

    .3.1. .......... 289

    .3.2. ................................................... 292

    .4. ........................................ 294

    .4.1. .......................................... 300

    ............................... 305

    ......................................................... 305

    .5. ............ 305

    .............................................................. 305

    .5.1. ....................... 306

    .5.1 ..................................................... 317

    .5.2. .................................... 318

    .5.2 ..................................................... 332

    .5.3. . -

    ................................................................ 333

    .5.3 ..................................................... 344

    .5.4. .. 345

    .5.4 ..................................................... 359

    .6.

    ........... 359

    .............................................................. 359

    .6.1. m- -

    ............................................................ 361

    .6.2. , -

    ............................. 362

    .6.3. NP- ................... 366

    .6.4. -

    ............................................ 368

    .6.5. -

    .................... 372

    .6.6. ........ 381

    .6........................................................ 392

    ................................................................... 395

    ................................................ 397

  • :

    = 15

    P P 24

    P Q P Q 25

    P Q P Q 25

    P Q P Q 27 28 28n! n 37

    {P}A {Q} - A 39a S a | S 45a 6 S a S 45{x : P (x)} x,

    P (x) 45

    46

    N 46

    Z 46

    Q 46

    R 46

    A S A | S 46A B A B 47A B A B 47A \B A B 48U 48

    A A 48

    A B A B 49

    |S| S 54(a; b) 55

    AB A B 55R2

    56

    A

    n

    n -

    A 57

    P(A) 61M(i; j) ,

    i- j- 71

    xR y (x; y) R 72

  • 7

    R

    R 75

    E

    x

    x 78

    x y x | - y 80

    87

    88

    89

    R

    1 91

    S R R S 92MN M N 94

    f(x) x 97

    f : A B A B 97f(A) f 97

    f

    1: A 102

    g f f g 104|x| x 110x x 110P (n; k) (n; k)-

    121

    C(n; k) (n; k)-

    123

    O(g(n)) , -

    , g(n)

    137

    (v) 143

    G = (V; E) V

    E 143

    (G) 146

    K

    n

    n 148

    154

    P 160

    -

    171

    M

    k

    k

    M 176

    M

    176

    d[v v 182

    p p 195

    p q p q 195p q p q 195{ { 200

  • 8

    a

    b

    a b 205

    a a 205

    a

    b

    a b 205

    { 205

    { { 209

  • | -

    , , .

    ,

    ,

    , . -

    , , ,

    ,

    , , .

    ,

    -

    . -

    , ,

    , .

    , , -

    , . -

    ,

    , .

    -

    () .

    20 . -

    , , -

    .

    ,

    .

    1

    - 2

    - 3

    - 6

    ? 9

    6

    4

    - 5

    6

    7

    - 8

    p

    p

    p

    p

    p

    p?

  • 10

    ,

    . -

    .

    -

    , , ,

    , .

    ,

    -

    .

    , -

    , Pear-

    son Eduation , .

    , | , -

    .

    2001

  • 1

    -

    . -

    ,

    , , -

    .

    . -

    , ,

    , .

    -

    -

    . |

    . , ,

    , -

    .

    | , -

    .

    | -

    , .

    -

    . -

    , ,

    . -

    1

    , -

    , .

    1.1.

    -

    , . 1.1.

    :

    ( ) -

    : , , , ,

    1

    Pasal |