2-1 ????(Ordered List) - PowerPoint PPT Presentation

About This Presentation
Title:

2-1 ????(Ordered List)

Description:

Title: PowerPoint Author: james Last modified by: pc-203 Created Date: 8/5/2003 7:17:27 AM Document presentation format: Company – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 31
Provided by: JamesB4
Category:
Tags: list | ordered

less

Transcript and Presenter's Notes

Title: 2-1 ????(Ordered List)


1
????
  • 2-1 ????(Ordered List)
  • 2-2 ????(array)
  • 2-3 ??(matrix)???
  • 2-4 ????????

2
2-1 ????(Ordered List)
  • ????????,????????????????????????,??????
  • ??????????,?????(a1,a2,a3...,an-1,an)?
  • ??????????a1????????????an?
  • ???????a1?,?????????????(precessor),??ai?????ai-1?
  • ????????an?,?????????????(successor),??ai1?ai????
    ?

3
8??????
  • ???????n?
  • ???????i?????????
  • ?????????i?,???????i,i1...,n?,????i1,i2...,n1?
    ?
  • ???i????,????i1,i2,n?,?????i,i1...,n-1??
  • ?????????????????????
  • ??i?????,??????
  • ?????
  • ?????

4
?????????????
  • ??????????,??????????
  • ??????
  • ???????(dense list),????????????????????(contiguou
    s allocation)????????????????????????
  • ??????
  • ???????(linked list),?????????????????????????????
    (pointer)????????????????

5
2-2 ????(array)
  • ????
  • ??????????(????????)????????????
  • ??(dimension)??????????,??????????????????
  • ?????????????,???????????????
  • ??????????????????1?
  • ????????????,??????????????????

6
????(one-dimension array)
  • ??A???A(1u1),??A??n????????,??1???,u1????

A(1)?A(2) ? A(3) ?..................A(u1) a
?a1d?a2d ?.................a(
u1-1)d Loc(A(i)) a(i-1)d (Loc(A(i))??A(i)?????
)
7
????(two-dimension array)
  • ????A???(1m,1n),??A?????mn??????????,??m
    ???n????????A(i,j)???????????

8
????????????
  • ?????????,?????????
  • ????(row-major)
  • Loc(A(i,j)) an(i-1)d(j-1)d
  • ????(column-major)
  • Loc(A(i,j)) a(i-1)dm(j-1)d

9
????(three-dimension array)
  • ????A???A(1u1,1u2,1u3),??A?????u1u2u3????????
    ?????A(i,j,k)?????????????

10
????-????
  • ????(row-major)
  • Loc(A(i,j,k))a(i-1)u2u3d(j-1)u3d(k-1)d

11
????-????
  • ????(column-major)
  • Loc(A(i,j,k))a(i-1)u2u3d(j-1)u3d(k-1)d

12
n???
  • ????(row-major)

Loc(A(i1,i2,i3,in)) a(i1-1)u2u3u4und
(i2-1)u3u4und (i3-1)u4u5und
(i4-1)u5u6und (i5-1)u6u7und
(in-1-1)und (in-1)d
13
n???
  • ????(column-major)

Loc(A(i1,i2,i3,in)) a(in-1)un-1un-2u1d
(in-1-1)un-2u1d
(i2-1-1)u1d (i1-1)d
14
2-3 ??(matrix)???
  • ???,?????(matrix)?????????????????
  • ??????????,???????????????,???????????????,???????
    ?(sparse matrix)?????(At)???????(Upper Triangular
    Matrix)???????(Lower Triangular Matrix)???

15
?????
16
????
  • ??A?mxn??,?At?nxm??,????A(i,j)At(j,k)??At?A??????

17
?????
  • A???mxn??,B???nxp?????A????????B????????
  • AxB??????????mxp??C?

18
?????????
19
????(Sparse Matrix)
  • ????????????????????????0,???????????

20
???????
  • ??????????????
  • ?????????????n?????,????????A(0t,13)???????????
    A(0,1)??????????,A(0,2)??????????,?A(0,3)?????????
    ??????

21
???????????
22
??????(Upper Triangular Matrix)
  • ???????????????????0?nxn????????????????(Right
    Upper Triangular Matrix)????????(Left Upper
    Triangular Matrix)?

23
???????
24
????
25
????
26
???????
27
??????(Lower Triangular Matrix)
  • ????????,?????????????0?nxn???
  • ???????B(1n(n1))???,??????????????????????????

28
???????
29
???????
30
2-4 ?????????
  • ?????????,??????????
  • ????n2?????????,??????????????n,????????n??,?????
    ?????
  • P(n,an,an-1,,a1,a0)???A(1n2)
  • ??P(x)2x53x45x24x1,?????A?????gtA5,2,3,0,5,
    4,1
  • ????????????
  • P(x)2x53x45x24x1,????A(12m1)??
  • gtA5,2,5,3,4,5,2,4,1,1,0
Write a Comment
User Comments (0)
About PowerShow.com