Professional Documents
Culture Documents
Solution Manual For Introduction To Algorithms, Third Edition by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein
Solution Manual For Introduction To Algorithms, Third Edition by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein
Solution Manual For Introduction To Algorithms, Third Edition by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein
https://testbankmall.com/product/solution-manual-for-computer-
algorithms-introduction-to-design-and-analysis-3-e-3rd-
edition-0201612445/
https://testbankmall.com/product/solution-manual-for-
introduction-to-the-design-and-analysis-of-algorithms-3-e-3rd-
edition-anany-levitin/
https://testbankmall.com/product/solution-manual-for-
introduction-to-mathcad-15-3-e-ronald-w-larsen/
https://testbankmall.com/product/test-bank-for-anthropology-of-
religion-magic-and-witchcraft-the-3-e-3rd-edition-rebecca-stein-
philip-l-stein/
Solution Manual for Business Logistics/Supply Chain
Management, 5/E Ronald H. Ballou
https://testbankmall.com/product/solution-manual-for-business-
logistics-supply-chain-management-5-e-ronald-h-ballou/
https://testbankmall.com/product/solution-manual-for-
introduction-to-financial-accounting-11-e-11th-edition-charles-t-
horngren-gary-l-sundem-john-a-elliott-donna-philbrick/
https://testbankmall.com/product/solution-manual-for-
introduction-to-finance-17th-edition-ronald-w-melicher/
https://testbankmall.com/product/solution-manual-for-concepts-in-
strategic-management-and-business-policy-14th-edition-thomas-l-
wheelen-j-david-hunger-alan-n-hoffman-charles-e-bamford/
https://testbankmall.com/product/solution-manual-for-elementary-
surveying-an-introduction-to-geomatics-13-e-charles-d-ghilani-
paul-r-wolf/
We also refer to the numbers as keys. Along with each key may be additional
Expressing
algorithms
Pseudocode is similar to C, C++, Pascal, and Java. If you know any of these
languages, you should be able to understand pseudocode.
Pseudocode is designed for expressing algorithms to humans. Software
en- gineering issues of data abstraction, modularity, and error handling are
often ignored.
We sometimes embed English statements into pseudocode. Therefore, unlike
for “real” programming languages, we cannot create a compiler that translates
pseudocode to machine code.
Insertion sort
Pseudocode
We use a procedure I NSERTION -S ORT.
Takes as parameters an array and the length of the
array. As in Pascal, we use “ ” to denote a range within an array.
length
length
The array is sorted in place: the numbers are rearranged within the
array, with at most a constant number outside the array at any time.
2-3 Lecture
Lecture
Notes
Notes
forfor
Chapter
Chapter
2: 2:
Getting
Getting
Started
Started 2-3
while and
key key
Example
j j j
51 22 43 64 15 36 21 52 43 64 15 36 21 42 53 64 15 36
j j
21 42 53 64 15 36 11 22 43 54 65 36
11 22 33 44 55 66
Correctness
Pseudocode conventions
Parameters are passed by value, as in Java and C (and the default mechanism
in Pascal and C++). When an object is passed by value, it is actually a
reference (or pointer) that is passed; changes to the reference itself are not
seen by the caller, but changes to the object’s attributes are.
2-6 Lecture
Lecture
Notes
Notes
forfor
Chapter
Chapter
2: 2:
Getting
Getting
Started
Started 2-6
The boolean operators “and” and “or” are short-circuiting: if after evaluating
the left-hand operand, we know the result of the expression, then we don’t
evaluate the right-hand operand. (If is FALSE in “ and ” then we don’t
evaluate . If is TRUE in “ or ” then we don’t evaluate .)
Analyzing algorithms
We want to predict the resources that the algorithm requires. Usually, running
time. In order to predict resource requirements, we need a computational
model.
For example, we’ll see that insertion sort takes less time to sort elements
when they are already sorted than when they are in reverse sorted order.
Another random document with
no related content on Scribd:
recorded also from Cretaceous and Tertiary formations. Search
should be made for fertile specimens or for evidence as to the
association of seeds with Thinnfeldia fronds.
Some Permian fossils from Kansas which Sellards[1435] has made
the type of a new genus, Glenopteris, appear to be indistinguishable
generically from leaves of Lower Mesozoic age universally
recognised as typical examples of Thinnfeldia.
Lomatopteris.
The generic name Lomatopteris was proposed by Schimper[1450]
for some bipinnate fronds originally described by Kurr[1451] from
Jurassic rocks of Württemberg as Odontopteris (?) jurensis (fig. 360,
A). I have elsewhere expressed the opinion[1452] that this German
species may be identical with Thinnfeldia rhomboidalis Ett. Kurr’s
type-specimen, a portion of which is reproduced in fig. 360, A,
consists of a frond or large pinna characterised by a prominent and
broad rachis giving off alternate linear pinnae bearing bluntly
rounded, contiguous and basally concrescent pinnules having a thick
or revolute border and a central rib. The lateral veins are visible in
the ultimate segments of Kurr’s fossil. Saporta[1453] has described
several species, which he refers to Schimper’s genus, from French
Jurassic strata: it is, however, difficult to recognise some of the
examples represented in his illustrations as specifically distinct
forms. This author notices the resemblance of Lomatopteris to
Thinnfeldia, not only in habit but in the structure of the epidermal
cells[1454]. In Lomatopteris and in Thinnfeldia the cells have straight
and not sinuous walls and the slightly sunken stomata are
surrounded by a ring of epidermal cells. Salfeld[1455] has recently
described portions of fronds from Jurassic rocks of South-West
Germany, which he identifies as Lomatopteris jurensis. He disagrees
with my view that Lomatopteris does not differ sufficiently from
Thinnfeldia to be accorded generic autonomy, chiefly on the ground
that the folded-over edge of the pinnules is a distinguishing feature
of Lomatopteris. There is, however, no difference, in appearance at
least, between the leaflets of some species of Thinnfeldia, e.g. T.
rhomboidalis from Liassic rocks of England[1456], and those referred
to Lomatopteris. In a later paper, Salfeld[1457] describes some
Portlandian fragments from North Germany as Lomatopteris
Schimperi, identifying them with a Wealden fossil of somewhat
doubtful affinity, which Schenk[1458] makes the type of his species.
The Portlandian specimens are described as tripinnate, with thick
decurrent obtusely terminated pinnules with a revolute edge. The
general form of the frond is very similar to that of L. jurensis. Salfeld
publishes a photograph of a large specimen which he describes as
fertile and a drawing of a piece of a pinna: the latter is reproduced in
fig. 360, B. He speaks of sori occurring in two rows, probably
attached to lateral veins, in the groove between the midrib and the
revolute edge of the lamina. The sporangia are described as “nicht
näher bekannt[1459].” An examination of the figures reveals nothing as
to the nature of the “sori.” The specimens are considered by Salfeld
to afford decisive evidence against the view that Lomatopteris and
Thinnfeldia are generically identical. Nothing has so far been
published which constitutes a valid argument in favour of retaining
Schimper’s generic name.
Cycadopteris.
Zigno[1460] founded the genus Cycadopteris on Italian Jurassic
impressions regarded by Schimper as indistinguishable from
Lomatopteris. As Solms-Laubach[1461] points out, the supposed sori
of Cycadopteris described by Zigno are not convincing. There
appear to be no satisfactory reasons for separating Cycadopteris
from Lomatopteris, nor do the fronds described under these names
exhibit any important differences from Thinnfeldia.
Ptilozamites.
Nathorst[1462] founded this genus on a remarkable series of
specimens from the Rhaetic Coal-beds of Scania and assigned it to
the Cycadophyta. The species Ptilozamites Heeri may be taken as a
representative type. The leaves are linear and simply pinnate. In the
example shown on a much reduced scale in fig. 361 the frond is 53
cm. long and 2·1 cm. broad. The upper edge of each pinnule is
straight or slightly concave; the lower edge is rounded; the veins are
slightly divergent and dichotomously branched (fig. 356, E, p. 539).
In some of Nathorst’s specimens the broad rachis is forked as in
many Thinnfeldias.
As a comparison of fig. 356, A and E, shows, the pinnules of some
specimens of Thinnfeldia odontopteroides are identical with those of
Ptilozamites. In the latter genus the rachis is either unbranched or
occasionally forked, while in Thinnfeldia the branching may be of the
dichotomous or pinnate type. In Ptilozamites the segments appear to
be always without a midrib, while a median vein frequently occurs in
those of Thinnfeldia. There can be little doubt as to the very close
alliance between the Rhaetic species referred to these two genera.
The name Ptilozamites should perhaps be retained for such long and
narrow fronds as that shown in fig. 361: no species included in
Thinnfeldia is known in which the rachis reached so great a length
without branching. The habit of Ptilozamites Heeri predisposes one
in favour of Nathorst’s opinion that the fronds are Cycadean: we
have no information in regard to the nature of the reproductive
organs.
Fig. 361. Ptilozamites Heeri, Nath. (⅓ nat. size. After Nathorst.)
Ctenopteris.
This name was instituted by Saporta[1463], at Brongniart’s
suggestion, for Liassic species characterised by pinnules like those
of Thinnfeldia, but distinguished by the bipinnate habit of the frond.
Saporta compares the genus with the Palaeozoic leaves known as
Odontopteris, and with Italian Jurassic plants referred by Zigno to his
genus Dichopteris.
The name Ctenozamites is applied by Nathorst[1464] to the type of
frond which Saporta, Zeiller, and other authors refer to Ctenopteris.
Nathorst instituted Ctenozamites for fossils agreeing in the form and
venation of the pinnules with his genus Ptilizamites but differing in
being bipinnate and not pinnate.
Fronds of Ctenopteris are characteristic of the Jurassic and
Rhaetic series; they are known only in the sterile condition. As
Zeiller[1465] says, Ctenopteris may be a member of the Cycadofilices,
an extinct group founded on Palaeozoic plants combining Cycadean
and Filicinean characters, and some of which are now known to be
Pteridosperms. It is probable that the genus is not a true fern: it is
more likely to be a member of the Cycadophyta or of some
generalised extinct group.
Frond bipinnate, broad rachis giving off branches at an acute angle; pinnules
broadly linear, slightly falcate, with several slightly divergent forked veins.
Dichopteris.
This genus was proposed by Zigno[1469] for some large specimens
from the Jurassic plant-beds of Northern Italy.
The bipinnate leaves are characterised by the great breadth of the rachis
which is dichotomously branched in the distal region (fig. 363); the linear
pinnae reach a considerable length. Pinnules relatively small, oblong and
slightly contracted at the base; the decurrent and confluent lamina forms a
narrow wing to the main axis. Veins slightly divergent and forked, as in
Ptilozamites.
Dichopteris visianica, Zigno. Fig. 363.
A specimen of this species in the Padua Museum has a total
length of 83 cm. It has been elsewhere suggested[1470] that a
fragment figured by Zigno as a fertile example of this type is
probably part of a frond of the Osmundaceous fern Todites. Since
this opinion was expressed I have had an opportunity of examining
the actual specimen at Padua: the circular patches described by
Zigno as sori appear to be irregularities in the matrix and not an
original feature.
Brongniart[1471] instituted the genus Pachypteris for some
imperfectly preserved English Jurassic fossils from Whitby, which he
described as P. lanceolata. Specimens have since been
described[1472] from the Inferior Oolite rocks of the Yorkshire coast.
Brongniart described the pinnules as being without veins or as
possessing only a midrib. It is almost certain that the apparent
absence of veins in most specimens[1473] is due to the fleshy nature
of the segments and that the species P. lanceolata should be
transferred to Dichopteris.
Krasser[1474] has described a species from Cretaceous rocks of the
island of Lesina, off the Dalmatian coast, as Pachypteris dalmatica
which is very similar in habit to the English specimens and to Zigno’s
Dichopteris visianica. One of Krasser’s specimens is practically
identical with Dichopteris lanceolata (Brongn.), while in others the
small pinnules are replaced in some of the pinnae by a continuous
lamina with a few distal serrations. The latter form a link between the
Dichopteris and Thinnfeldia type of segment. Krasser gives a full
résumé of opinions expressed by other authors in regard to the
position of Pachypteris (= Dichopteris) and decides in favour of a
Cycadean alliance.
Fig. 363. Dichopteris visianica, Zigno. (⅓ nat. size. After Zigno.)
A French Jurassic plant which Saporta[1475] made the type of a new
genus Scleropteris, and described as S. Pomelii, appears to be
indistinguishable from Dichopteris.
Dichopteris, though conveniently retained as a distinct genus,
agrees so closely, in the broad and forked rachis and in the fleshy
pinnules, with Thinnfeldia that it would seem reasonable to regard
the two genera as members of the same group.
Several authors have drawn attention to the striking resemblance
in form and venation between the fronds of the Palaeozoic genus
Odontopteris and those of Ctenopteris and Thinnfeldia. In
Odontopteris, as in Neuropteris, another Palaeozoic genus, the
rachis occasionally bifurcates as in Thinnfeldia and Dichopteris, and
the ultimate segments of some species of Odontopteris (fig. 366, A)
are practically identical with those of Thinnfeldia and Ptilozamites.
Odontopteris is probably a Pteridosperm. There is no adequate
reason for supposing that this group of plants which played a
prominent part in the Permo-Carboniferous floras was no longer in
existence during the Mesozoic era.
Odontopteris.
Brongniart[1476] instituted the genus Odontopteris for compound
fronds from the Coal-Measures characterised by pinnules attached
by the whole breadth of the base and traversed by numerous forked
veins. Odontopteris is very rare in British Carboniferous rocks and
“appears to be restricted to the Middle and Upper Coal-
Measures[1477].”
Fig. 364.
A. Alethopteris lonchitica (Schloth.). ½ nat. size.
B. Mariopteris muricata (Schloth.). × 2.
C. Odontopteris cf. alpina (Presl). ⅗ nat. size.
D. O. cf. alpina. Portion of pinna enlarged.
(A–D. From photographs by Dr Kidston.)]
Fig. 365. Odontopteris minor, Brongn. (Rather less than ⅓ nat. size. After
Zeiller.) [The pinnules are omitted in the right-hand branch.]
The species represented in fig. 364, C, D, from the Middle Coal-
Measures of Barnsley, Yorkshire, illustrates the form and venation of
the Odontopteris type of pinnule. Another species, O. Reichiana
Gutb.[1479], is also recorded by Kidston from the Lower Coal-
Measures of Lancashire. Some unusually good specimens of the
type-species of the genus Odontopteris minor, Brongn., have been
figured by Zeiller[1480] from the Coal-Measures of Blanzy (fig. 365)
which show the dichotomy of the main axis and the occurrence of
Aphlebiae on the petiole. The late Dr Weiss[1481] divided Odontopteris
into two sections, Xenopteris and Mixoneura, the pinnules of the
former having the form shown in fig. 364, D; while in species of the
latter sub-genus some of the pinnules are identical in form and
venation with those of Neuropteris except that they are attached by
the whole breadth of the base. Zeiller[1482] employs Mixoneura as a
generic designation. In an American species O. Wortheni Lesq.[1483]
the pinnules bear numerous hairs like those on some species of
Neuropteris (fig. 373, p. 570). The large size of the fronds of
Odontopteris suggested to Weiss[1484] that they were borne on the
stems of tree-ferns, but Grand’Eury’s[1485] examination of specimens
in the Coal-beds of central France led him to picture the plant as
bearing a tuft of leaves on a short subterranean stem. Renault and
Zeiller[1486], on the other hand, obtained evidence in the Commentry
Coal-field of fronds borne on elongated stems which grew on the
ground and were supported by stronger plants. Stur[1487] was the first
to suggest that Odontopteris should be excluded from the ferns.
Grand’Eury’s[1488] supposed fertile pinnules of Odontopteris do not
afford any satisfactory evidence of the sporangial nature of the small
swellings which he figures at the ends of the veins. This author
pointed out several years ago that the petioles of some species of
Odontopteris possess the anatomical features of Myeloxylon, a type
of leaf-stalk which is now known to belong to Pteridosperms. In a
recent paper Grand’Eury[1489] records the association of Odontopteris
fronds with small seeds (Odontopterocarpus), a discovery which
leaves little or no doubt as to the Pteridospermic nature of the genus.
The fronds of Odontopteris are very similar in habit to those of
Neuropteris, another Pteridospermic genus.
The similarity between some Odontopteris and Thinnfeldia leaves,
to which attention has already been called, is well illustrated by O.
genuina Grand’Eury[1490], a pinnule of which is represented in fig.
366, A. Odontopteris is a fairly widespread genus in Upper
Carboniferous and Lower Permian rocks, and is recorded also from
Triassic strata: it is represented in the Coal-fields of North America
and in several parts of Europe[1491].
In some fronds included in Odontopteris the pinnae are
characterised by a broad irregularly lobed lamina which also forms a
winged border to the rachis. Examples of this form are afforded by
Odontopteris Browni Sew.[1492] from the Burghersdorp Series
(Triassic?) of Cape Colony, and O. Fischeri described by
Brongniart[1493] from the Permian of Russia. The Russian species
would perhaps be more appropriately placed in the genus Callipteris,
as Weiss[1494] suggests; the absence of venation in O. Browni
renders generic identification unsatisfactory.
Fig. 366.
A. Odontopteris genuina (Grand’Eury). (× 2⅝. After Renault and Zeiller.)
B. Callipteridium gigas (Gutb.). (× 2⅝. After Zeiller.)
C. Callipteris Pellati (Zeill.). (× 1¾. After Zeiller.)
D. C. lyratifolia (Goepp.). (× 1¾. After Zeiller.)
Callipteris.
Brongniart[1495] instituted this genus for certain species of
supposed ferns previously referred to the genera Pecopteris,
Alethopteris, and Neuropteris. Callipteris is a characteristic Permian
plant which is almost certainly a Pteridosperm. Zeiller has pointed
out that such descriptions of fertile specimens as have been written