Fundamentals of Python: Data Structures 2nd Edition Kenneth A. Lambert Instant Download
Fundamentals of Python: Data Structures 2nd Edition Kenneth A. Lambert Instant Download
https://textbookfull.com/product/fundamentals-of-python-data-
structures-2nd-edition-kenneth-a-lambert/
https://textbookfull.com/product/fundamentals-of-python-first-
programs-2nd-edition-kenneth-a-lambert/
https://textbookfull.com/product/data-structures-algorithms-in-
python-john-canning/
https://textbookfull.com/product/data-science-fundamentals-for-
python-and-mongodb-1st-edition-david-paper/
https://textbookfull.com/product/fundamentals-of-structural-
analysis-kenneth-m-leet/
Fundamentals of Music Processing: Using Python and
Jupyter Notebooks 2nd Edition Meinard Müller
https://textbookfull.com/product/fundamentals-of-music-
processing-using-python-and-jupyter-notebooks-2nd-edition-
meinard-muller/
https://textbookfull.com/product/data-structures-with-c-
programming-2nd-edition-anil-kumar-yadav/
https://textbookfull.com/product/python-for-data-science-2nd-
edition-john-paul-mueller/
https://textbookfull.com/product/matplotlib-for-python-
developers-effective-techniques-for-data-visualization-with-
python-2nd-edition-yim/
https://textbookfull.com/product/interpreting-lisp-programming-
and-data-structures-2nd-edition-gary-d-knott-auth/
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
second Edition
Fundamentals of Python:
Data STRUCTURES
Kenneth A. Lambert
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
This is an electronic version of the print textbook. Due to electronic rights restrictions,
some third party content may be suppressed. Editorial review has deemed that any suppressed
content does not materially affect the overall learning experience. The publisher reserves the right
to remove content from this title at any time if subsequent rights restrictions require it. For
valuable information on pricing, previous editions, changes to current editions, and alternate
formats, please visit www.cengage.com/highered to search by ISBN#, author, title, or keyword for
materials in your areas of interest.
Important Notice: Media content referenced within the product description or the product
text may not be available in the eBook version.
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Fundamentals of Python: © 2019, 2014 Cengage Learning, Inc.
Data Structures, Second Edition
Unless otherwise noted, all content is © Cengage.
Kenneth A. Lambert
ALL RIGHTS RESERVED. No part of this work covered by the
copyright herein may be reproduced or distributed in any form or
SVP, GM Skills & Global Product by any means, except as permitted by U.S. copyright law, without
Management: Jonathan Lau the prior written permission of the copyright owner.
Product Manager: Chris Shortt For product information and technology assistance, c ontact us
at Cengage Customer & Sales Support,
Product Assistant: Thomas Benedetto
1-800-354-9706 or support.cengage.com.
Executive Director, Content Design: Marah
Bellegarde
For permission to use material from this text or product,
Director, Learning Design: Leigh Hefferon submit all requests online at
www.cengage.com/permissions.
Learning Designer: Kate Mason
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents
iii
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
contents
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
contents
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
contents
Glo s s ar y �����������������������������������������������������401
Welcome to Fundamentals of Python: Data Structures, 2nd Edition. This text is intended
for a second semester course in programming and problem solving with data structures. It
covers the material taught in a typical Computer Science 2 course (CS2) at the undergradu-
ate level. Although this book uses the Python programming language, you need only have a
basic knowledge of programming in a high-level programming language before beginning
Chapter 1.
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
P r e fa c e Why Python?
Why Python?
Computer technology and applications have become increasingly more sophisticated over
the past three decades, and so has the computer science curriculum, especially at the intro-
ductory level. Today’s students learn a bit of programming and problem solving and are
then expected to move quickly into topics like software development, complexity analysis,
xii
and data structures that, 30 years ago, were relegated to advanced courses. In addition,
the ascent of object-oriented programming as the dominant paradigm has led instructors
and textbook authors to bring powerful, industrial-strength programming languages such
as C++ and Java into the introductory curriculum. As a result, instead of experiencing the
rewards and excitement of solving problems with computers, beginning computer science
students often become overwhelmed by the combined tasks of mastering advanced con-
cepts as well as the syntax of a programming language.
This book uses the Python programming language as a way of making the second course
in computer science more manageable and attractive for students and instructors alike.
Python has the following pedagogical benefits:
•• Python has simple, conventional syntax. Python statements are very close to those of
pseudocode algorithms, and Python expressions use the conventional notation found
in algebra. Thus, you can spend less time dealing with the syntax of a programming
language and more time learning to solve interesting problems.
•• Python has safe semantics. Any expression or statement whose meaning violates the
definition of the language produces an error message.
•• Python scales well. It is easy for beginners to write simple programs in Python. Python
also includes all the advanced features of a modern programming language, such as
support for data structures and object-oriented software development, for use when
they become necessary, especially in the second course in computer science
•• Python is highly interactive. You can enter expressions and statements at an interpreter’s
prompts to try out experimental code and receive immediate feedback. You can also
compose longer code segments and save them in script files to be loaded and run as
modules or stand-alone applications.
•• Python is general purpose. In today’s context, this means that the language includes
resources for contemporary applications, including media computing and web
services.
•• Python is free and is in widespread use in the industry. You can download Python to run
on a variety of devices. There is a large Python user community, and expertise in Python
programming has great resume value.
To summarize these benefits, Python is a comfortable and flexible vehicle for expressing
ideas about computation, both for beginners and for experts. If you learn these ideas well
in the first year, you should have no problems making a quick transition to other lan-
guages needed for courses later in the curriculum. Most importantly, you will spend less
time staring at a computer screen and more time thinking about interesting problems
to solve.
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Organization of this Book P r e fa c e
collection is illustrated with one or more applications, and then several implementations
are developed, and their performance trade-offs are analyzed.
Chapters 10 through 12 present advanced data structures and algorithms as a transition to
later courses in computer science. Chapter 10 discusses various tree structures, including
binary search trees, heaps, and expression trees. Chapter 11 examines the implementation
xiv of the unordered collections, bags, sets, and dictionaries, using hashing strategies.
Chapter 12 introduces graphs and graph-processing algorithms.
As mentioned earlier, this book is unique in presenting a professional-quality framework of
collection types. Instead of encountering a series of apparently unrelated collections, you
will explore the place of each collection in an integrated whole. This approach allows you
to see what the collection types have in common as well as what makes each one unique.
At the same time, you will be exposed to a realistic use of inheritance and class hierarchies,
topics in object-oriented software design that are difficult to motivate and exemplify at this
level of the curriculum.
Special Features
This book explains and develops concepts carefully, using frequent examples and diagrams.
New concepts are then applied in complete programs to show how they aid in solving prob-
lems. The chapters place an early and consistent emphasis on good writing habits and neat,
readable documentation.
The book includes several other important features:
•• Case studies—These present complete Python programs ranging from the simple to the
substantial. To emphasize the importance and usefulness of the software development life
cycle, case studies are discussed in the framework of a user request, followed by analysis,
design, implementation, and suggestions for testing, with well-defined tasks performed at
each stage. Some case studies are extended in end-of-chapter programming projects.
•• Chapter summaries—Each chapter after the first one ends with a summary of the
major concepts covered in the chapter.
•• Key terms—When a new term is introduced in the text, it appears in bold face.
Definitions of the key terms are also collected in a glossary.
•• Exercises—Most major sections of each chapter after the first one end with exercise
questions that reinforce the reading by asking basic questions about the material in the
section. After Chapter 2, each chapter ends with review questions.
•• Programming projects—Each chapter ends with a set of programming projects of
varying difficulty.
objectives have been added to the beginning of each chapter. Several new figures have been
added to illustrate concepts, and many programming projects have been added or reworked.
A new section on iterators and higher-order functions has been added to Chapter 2. Finally,
a new section on Lisp-like lists, recursive list processing, and functional programming has
been added to Chapter 9.
xv
Instructor Resources
MindTap
MindTap activities for Fundamentals of Python: Data Structures are designed to help stu-
dents master the skills they need in today's workforce. Research shows employers need
critical thinkers, troubleshooters, and creative problem-solvers to stay relevant in our
fast-paced, technology-driven world. MindTap helps you achieve this with assignments
and activities that provide hands-on practice and real-life relevance. Students are guided
through assignments that help them master basic knowledge and understanding before
moving on to more challenging problems.
All MindTap activities and assignments are tied to defined unit learning objectives. H
ands-on
coding labs provide real-life application and practice. Readings and dynamic visualizations
support the lecture, while a post-course assessment measures exactly how much a class
stands in terms of progress, engagement, and completion rates. Use the content and learning
path as-is, or pick and choose how our materials will wrap around yours. You control what
the students see and when they see it. Learn more at http://www.cengage.com/mindtap/.
xvi
The first-of-its-kind digital subscription designed specially to lower costs. Students get total
access to everything Cengage has to offer on demand—in one place. That’s 20,000 eBooks,
2,300 digital learning products, and dozens of study tools across 70 disciplines and over
675 courses. Currently available in select markets. Details at www.cengage.com/unlimited
Acknowledgments
I would like to thank my friend, Martin Osborne, for many years of advice, friendly
criticism, and encouragement on several of my book projects.
I would also like to thank my students in Computer Science 112 at Washington and Lee
University for classroom testing this book over several semesters.
Finally, I would like to thank Kristin McNary, Product Team Manager; Chris Shortt, Product
Manager; Maria Garguilo and Kate Mason, Learning Designers; Magesh Rajagopalan, Senior
Project Manager; Danielle Shaw, Tech Editor; and especially Michelle Ruelos Cannistraci,
Senior Content Manager, for handling all the details of producing this edition of the book.
Dedication
To Brenda Wilson, with love and admiration.
Kenneth A.Lambert
Lexington, VA
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Chapter 1
Basic Python
Programming
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Chapter 1 Basic Python Programming
This chapter gives a quick overview of Python programming. It is intended to bring those
new to or rusty in Python up to speed, but it does not pretend to be a thorough introduc-
tion to computer science or the Python programming language. For a more detailed treat-
ment of programming in Python, see my book Fundamentals of Python: First Programs,
Second Edition (Cengage Learning, 2019). For documentation on the Python programming
2
language, visit www.python.org.
If your computer already has Python, check the version number by running the python
or python3 command at a terminal prompt. (Linux and Mac users first open a terminal
window, and Windows users first open a DOS window.) You are best off using the most
current version of Python available. Check for that at www.python.org, and download and
install the latest version if necessary. You will need Python 3.0 or higher to run the pro-
grams presented in this book.
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Basic Program Elements
import random
def main():
"""Inputs the bounds of the range of numbers
and lets the user guess the computer’s number until
the guess is correct."""
smaller = int(input("Enter the smaller number: ")) 3
larger = int(input("Enter the larger number: "))
myNumber = random.randint(smaller, larger)
count = 0
while True:
count += 1
userNumber = int(input("Enter your guess: "))
if userNumber < myNumber:
print("Too small")
elif userNumber > myNumber:
print("Too large")
else:
print("You’ve got it in", count, "tries!")
break
if __name__ == "__main__":
main()
Note that the code and its trace appear in the colors black, blue, orange, and green. Python’s
IDLE uses color coding to help the reader recognize various types of program elements.
The role of each color will be explained shortly.
To create or edit a Python module, try using Python’s IDLE (short for Integrated
DeveLopment Environment). To start IDLE, enter the idle or idle3 command at a terminal
prompt or launch its icon if it is available. You can also launch IDLE by double-clicking on
a Python source code file (any file with a .py extension) or by right-clicking on the file and
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Chapter 1 Basic Python Programming
selecting Open or Edit with IDLE. Make sure that your system is set to open IDLE when
files of this type are launched (this is the default on macOS but not on Windows).
IDLE gives you a shell window for interactively running Python expressions and statements.
Using IDLE, you can move back and forth between editor windows and the shell window to
develop and run complete programs. IDLE also formats your code and color-codes it.
4
When you open an existing Python file with IDLE, the file appears in an editor window, and
the shell pops up in a separate window. To run a program, move the cursor into the editor
window and press the F5 (function-5) key. Python compiles the code in the editor window
and runs it in the shell window.
If a Python program appears to hang or not quit normally, you can exit by pressing Ctrl+C
or closing the shell window.
Program Comments
A program comment is text ignored by the Python compiler but valuable to the reader as
documentation. An end-of-line comment in Python begins with a # symbol and extends to
the end of the current line. It is color-coded in red. For example:
# This is an end-of-line comment.
A multiline comment is a string enclosed in triple single quotes or triple double quotes.
Such comments, which are colored green, are also called docstrings, to indicate that they
can document major constructs within a program. The numberguess program shown
earlier includes two doc strings. The first one, at the top of the program file, serves as a
comment for the entire numberguess module. The second one, just below the header of the
main function, describes what this function does. As we shall see shortly, docstrings play a
critical role in giving help to a programmer within the Python shell.
Lexical Elements
The lexical elements in a language are the types of words or symbols used to construct
sentences. As in all high-level programming languages, some of Python’s basic symbols are
keywords, such as if, while, and def, which are colored orange. Also included among lexical
items are identifiers (names), literals (numbers, strings, and other built-in data structures),
operators, and delimiters (quotation marks, commas, parentheses, square brackets, and
braces). Among the identifiers are the names of built-in functions, which are colored purple.
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Basic Program Elements
All Python names, other than those of built-in functions, are color-coded in black, except
when they are introduced as function, class, or method names, in which case they appear
in blue. A name can begin with a letter or an underscore (_), followed by any number of
letters, underscores, or digits.
In this book, the names of modules, variables, functions, and methods are spelled in lower-
case letters. With the exception of modules, when one of these names contains one or more 5
embedded words, the embedded words are capitalized. The names of classes follow the
same conventions but begin with a capital letter. When a variable names a constant, all the
letters are uppercase, and an underscore separates any embedded words. Table 1-1 shows
examples of these naming conventions.
Use names that describe their role in a program. In general, variable names should
be nouns or adjectives (if they denote Boolean values), whereas function and method
names should be verbs if they denote actions, or nouns or adjectives if they denote values
returned.
Syntactic Elements
The syntactic elements in a language are the types of sentences (expressions, statements,
definitions, and other constructs) composed from the lexical elements. Unlike most high-
level languages, Python uses white space (spaces, tabs, or line breaks) to mark the syntax
of many types of sentences. This means that indentation and line breaks are significant in
Python code. A smart editor like Python’s IDLE can help indent code correctly. The pro-
grammer need not worry about separating sentences with semicolons and marking blocks
of sentences with braces. In this book, I use an indentation width of four spaces in all
Python code.
Literals
Numbers (integers or floating-point numbers) are written as they are in other program-
ming languages. The Boolean values True and False are keywords. Some data structures,
such as strings, tuples, lists, and dictionaries, also have literals, as you will see shortly.
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Chapter 1 Basic Python Programming
String Literals
You can enclose strings in single quotes, double quotes, or sets of three double quotes or
three single quotes. The last notation is useful for a string containing multiple lines of text.
Character values are single-character strings. The \ character is used to escape nongraphic
characters such as the newline (\n) and the tab (\t), or the \ character itself. The next code
6 segment, followed by the output, illustrates the possibilities.
print("Using double quotes")
print('Using single quotes')
print("Mentioning the word ‘Python’ by quoting it")
print("Embedding a\nline break with \\n")
print("""Embedding a
line break with triple quotes""")
Output:
Using double quotes
Using single quotes
Mentioning the word 'Python' by quoting it
Embedding a
line break with \n
Embedding a
line break with triple quotes
The operators have the standard precedence (selector, function call, subscript, arithmetic,
comparison, logical, assignment). Parentheses are used in the usual manner, to group sub-
expressions for earlier evaluation.
The ** and = operators are right associative, whereas the others are left associative.
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Basic Program Elements
Function Calls
Functions are called in the usual manner, with the function’s name followed by a parenthe-
sized list of arguments. For example:
min(5, 2) # Returns 2
Python includes a few standard functions, such as abs and round. Many other functions are 7
available by import from modules, as you will see shortly.
Like most other languages, Python allows operands of different numeric types in arithmetic
expressions. In those cases, the result type is the same type as the most general operand
type. For example, the addition of an int and a float produces a float as the result.
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Chapter 1 Basic Python Programming
its arguments are displayed. To prevent this from happening, you can give the optional
argument end a value of the empty string, as follows:
print("The cursor will stay on this line, at the end", end = "")
Required arguments have no default values. Optional arguments have default values and
can appear in any order when their keywords are used, as long as they come after the
8
required arguments.
For example, the standard function round expects one required argument, a rounded num-
ber, and a second, optional argument, the number of figures of precision. When the second
argument is omitted, the function returns the nearest whole number (an int). When the
second argument is included, the function returns a float. Here are some examples:
>>> round(3.15)
3
>>> round(3.15, 1)
3.2
In general, the number of arguments passed to a function when it is called must be at least
the same number as its required arguments.
Standard functions and Python’s library functions check the types of their arguments when
the function is called. Programmer-defined functions can receive arguments of any type,
including functions and types themselves.
sets PI to the value 3.1416. The syntax of a simple assignment statement is:
<identifier> = <expression>
Assignment statements must appear on a single line of code, unless the line is broken after
a comma, parenthesis, curly brace, or square bracket. When these options are unavailable,
another means of breaking a line within a statement is to end it with the escape symbol \.
You typically place this symbol before or after an operator in an expression. Here are some
admittedly unrealistic examples:
minValue = min(100,
200)
product = max(100, 200) \
* 30
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. WCN 02-200-203
Copyright 2019 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Discovering Diverse Content Through
Random Scribd Documents
LXIII menos de cinco manuscriptos existem ainda hoje em
diversas bibliothecas da Europa, sendo o mais antigo o de 1434, de
Andrea Bianco. Alem dos processos indicados serviam-se alguns
pilotos mais instruídos dos quadrantes e dos astrolábios, apesar de
passar como certo, para muitos portuguezes, que o astrolábio foi
descoberto e applicado á navegação por Martim de Bohemia e
empregado por elle pela primeira vez em 1484, quando acompanhou
Diogo Cão na viagem de descoberta do Congo. Fiados na
auctoridade de João de Barros l muitos escriptores, alguns mesmo
náuticos de profissão, caem em tal erro quando o que só se pôde
admittir é que Martim de Bohemia fizera qualquer modificação
n'aquelle instrumento, desde muito conhecido, pois já Raymundo de
Lulle em 1295 tratara do astrolábio que usavam os pilotos da ilha
Mayorca, sua pátria. Na exposição geographica, que em 1878 houve
na bibliotheca nacional de Paris, appareceram vários astrolábios
antigos, um árabe do anno de 656, alem d'outros de 765, de 785 e
de um, feito em Sevilha em 12402. A noticia dos astrolábios árabes
que o sr. F. A. Varnhagen vio em Madrid 3 com as datas de 1107 e
1276, põe em evidencia o erro de João de Barros, e de todos os que
o tem seguido. Demais, o citado Diogo Gomes de Cintra 4 muito
antes, (por 1460 ou 1462) declarava ter-se servido do quadrante 5
quando navegara nas costas d' Africa, e o achara mais exacto do
que a carta de marear. A invenção de Martim da Bohemia, como o
próprio Barros conta, foi tão infeliz, que os marítimos só saltando em
terra podiam servir-se do instrumento, por ser um circulo de madeira
de 3 palmos de diâmetro, que se suspendia em um pé de cabra, e
nem assim attingia a estabilidade indispensável 6. Tal era a
navegação costeira tradiccional, quando na mente do Infante D.
Henrique despontou o desejo de explorar regiões desconhecidas.
Para costear todo o perímetro do continente africano 1 Décadas da
Ásia, i.a, Liv. IV, Cap. II. '- DAlbertis, —Raccolta Roma, 1893. Parte
IV.Vol. I pag. i63 nota 3. ■ Na Hist. Geral do Brasil. Tomo I, pag.
446, e noVol. I, pag. 438, nota 10 d'este Archivo dos Açores. 4 De
prima inventione Guineae pag. 33 dizia: Ego habebat quadranlem;
quando ivi partes istas, et scripsit in tabulas quadrantis altitudine poli
artici, et ipsum me^ liorem invenct, quatn cartam.» 6 O quadrante
era um quarto de circulo, graduado, com uma alidade e fio de prumo
destinado á observação da altura dos astros, e muito mais
acommodado aos usos náuticos do que o astrolábio que era um
circulo completo. c Barros, obra citada, Dec. I. livro IV, cap. II.
LX1V não careciam os navegadores portuguezes de novos
processos,, bastavam os usados, desde a mais remota antiguidade.
Mas para navegar para o ponente, para avançar em pleno Atlântico,
mais de 700 milhas até chegar aos Açores, careciam de mais
sciencia, maiores recursos náuticos e sobretudo de uma heróica'
coragem. Se debaixo do ponto de vista civilisador e commercial a
descoberta do caminho da índia tem uma importância máxima,
como empresa náutica, é de certo muito menos importante do que o
reconhecimento dos Açores. Para a primeira bastava a sciencia
rudimentar dos antigos, auxiliada pelo tempo e pela pertinácia dos
exploradores; para a segunda tornava-se indispensável estudar
novos processos de navegação, meios efficazes de reconhecer o
caminho andado, a situação das embarcações na vasta solidão dos
mares, e isso só se pôde conseguir com o estudo dos astros e das
leis que determinam seus movimentos e posições relativas, por meio
de observações difficeis com instrumentos imperfeitos. Dado o facto
da descoberta das Formigas e de Santa Maria, não pode deixar de
admittir-se, que desde 143 1 a marinha portugueza attingiu um grau
de perfeição até então desconhecido, e que igualmente Gonçalo
Velho foi de todos os servidores do Infante D. Henrique, o que deve
ter a primazia, tanto pelos conhecimentos theoricos, como pela
coragem com que emprehendeu e levou a cabo o descobrimento ou
reconhecimento de umas pequenas ilhas em pleno oceano.
Ninguém, comtudo, aprecia devidamente o descobridor dos Açores,
o homem que primeiro se atreveu a navegar sem terra á vista,
correndo iminentes riscos, taes como o de se despedaçar nos baixios
das Fermigas, se por um acaso feliz, não tivesse reconhecido, como
reconheceu, a existência d'elles, durante o dia. Se em vez de uns
pequenos cachopos tivesse encontrado um vasto continente o seu
nome teria passado com maior fama á posteridade. Para ser justo,
torna-se essencial não attender aos resultados finaes, mas á
temeridade da empreza, e á coragem de quem se prestou a
desvendar os segredos do oceano, achando meios de vencer todas
as inherentes difficuldades ! Honra pois ao Commendador de
Almourol, ao esforçado guerreiro em Africa', Frei Conçalo Velho,
primeiro navegador conhecido, que fez proa ao ponente ! Outros
poderiam ter visto os Açores antes de Gonçalo Velho, trazidos pelas
tempestades, desgarrados de seus rumos, ao capriYide n'este
Archivo a nota da pag. 193 do Vol. IV.
LXV os magestosos vultos a que Portugal deve gigantesca
herança, cumprir-nos-ía fallar detidamente de Frei Gonçalo Velho, o
mais nobre1, o mais bravo, o mais honrado dos companheiros do
infante D. Henrique, se não falcho dos ventos e das vagas, como
pôde admittir-se em face dos mappas de Angelino Dulcieri de i33g,
do atlas Mediceo de i35i, e d'outros bem conhecidos i. Mas, como
quer que seja, não consta historicamente que algum outro tivesse o
propósito de navegar para os Açores. Póde-se bem avaliar da
exactidão e efficacia dos processos náuticos, usados por Gonçalo
Velho, attendendo não só a que elle próprio voltou aos Açores varias
vezes, mas que ensinou os pilotos posteriores a demandar estas
ilhas, com a certeza de encontrar aquella a que se destinavam. A
descoberta de St.a Maria por Gonçalo Velho, em 1432 é, pois, a
primeira e innegavel prova de um audacioso modo de navegar até
então nunca usado e da profunda revolução realisada pelos
portuguezes na arte náutica. E vale por certo muito mais, para a
historia marítima, chegar até aos Açores do que costear todo o
continente africano. Aquella foi a primeira viagem no mar largo com
proa ao ponente ; esta uma questão, tão somente, de rotina e de
tempo. Se alguma coisa ha a extranhar na empreza africana é a
lentidão (mais de 5o annos) com que ella se proseguio, até
Bartholomeu Dias dobrar o cabo da Boa Esperança em 1486. É pois
tempo de restituir a Gonçalo Velho o devido louvor pelo feito
glorioso e arriscado que realisou, navegando afoito para oeste e
consideral-o como o primeiro e o verdadeiro percursor de Colombo,
que tanta fama alcançou caminhando com a mesma proa 60 annos
depois. Honrado Gonçalo Velho não menos se glorifica o Infante D.
Henrique, que soube escolher entre tantos servidores, aquelle que
tão cabalmente se desempenhou d'aquella árdua missão ! Ernesto
do Canto. 1 Como demonstrámos a pag. clxxxvii do vol. 1 d'este
trabalho, el-rei D. João II, de Portugal, e Fr. Gonçalo Velho eram 6.os
netos, com uma quebra de bastardia, cada um, d'el-rei D. Affonso
III, de ' Bibliotheca Açoriana, n.os 2943, 1907 a 1909, 2941, 2945 e
1910, etc. E
LXVI lassem em nosso nome os documentos aqui
publicados,, por isso resumil-os-hemos. Talvez que Frei Gonçalo
Velho tivesse nascido em Velleda, onde seu pae era alcaide-mór,
talvez que em Lisboa, onde pousava a corte, de costume: ao
começar o século xv vae ao norte da Africa buscar honra para
Portugal, portanto estão na mesma distancia genealógica d'este
monarcha, de seus pães e avós. Assim, um e outro, são 7.°% 8.os e
9."" netos dos reis de PortugaL D. Affonso II, D. Sancho I e D.
Affonso I, io.os netos do conde de Portugal, D. Henrique ; seguindo
esta linha na varonia, 14.°* netosde Hugo Capeto. Hugo Capeto, foi,
como é sabido, duque de França, conde de Paris e d'Orleans (Anno
960), rei de França (Anno 087), nasceu, em 941 e morreu em 996,
tendo casado com Adelaide, italiana, em 970; filho de Hugo — o
grande — o abbade— , conde de Paris e d'Orleans, duque da
Neustria, de Borgonha, da Aquitanea e de França, morreu em 956,
tendo casado em q3S com Hedwige, filha de Henrique — o
passarinheiro — , rei da Germanea, 16.0 avô de D. João II e de Fr.
Gonçalo Velho; neto paterno de Roberto Iy duque de França, rei de
França (Anno 922), morreu em 923 e casou, com Beatriz, filha de
Herberto, conde de Vermandois, 17.0 avô de D. João II e de Fr.
Gonçalo Velho ; bisneto, sempre na varonia, de Roberto — o forte —
de origem saxonia, conde de Paris (Anno 85 1), conde d'Anjou (Anno
869), duque de França (Anno 866)T morreu em 866. Roberto —o
forte—, tronco dos reis chamados da terceira raça, era i~.° avô de
el-rei D. João II, de Portugal, e de Fr. Gonçalo Velho. A rainha de
Portugal, D. Urraca, mulher de el-rei D. Affonso,!!,, vinha dos reis de
Castella e descendia de Henrique II, rei de Inglaterra, pae de
Ricardo — coração de leão — e bisneto de Guilherme — o
conquistador — , 12." avô de D. João II e de Fr. Gonçalo Velho; de
D. Affonso VIU, conde de Galliza, rei de Castella e de Leão,, coroado
imperador da Hespanha em 1 1 35, morreu em 1 1 57, tendo
nascido em 1 106 e casado em 1 128 com uma filha de Raymundo
III, •conde de Barcelona, io.os avós do i3.° rei de Portugal e do
commendador d'Almourol. Ainda por esta senhora D. Urraca de
Castella, eram, os mesmos, i5.°* netos de Aldeberto, rei da
Lombardia,, por 970; 14.08 netos de Ricardo II — o bom — , duque
da Normandia (Anno 1027), pae de Roberto — o diabo — ; 17.°'
netos de
I.XVII accrescentar á que herdara pelo lado de seu pae e
pelo lado de sua mãe. Era ahi o noviciado dos cavalleiros, abundante
mina onde se enriqueciam de gloriosa fama, ■e, quando mais tarde
se queriam iniciar em quaesquer emprezas, invocavam os feitos
passados como habilitação segura para obter o que procuravam; era
humiRamiro II, rei de Leão, por 940, e de Urraca, sua mulher, e 24.
°* netos de Froila, pae do primeiro rei de Oviedo. Froíla era filho do
duque de -Cantábria, Pelagio, da raça real de Leuvigildo e de
Ricaredo. D. Dulce, rainha de Portugal, mulher de D. Sancho I, rei de
Portuga], era dos condes de Barcelona, ascendentes, por
conseguinte, do rei e do commendador a que nos referimos. A
primeira rainha de Portugal, D. Mafalda, da casa de Saboya, filha de
Amadeu II, conde de Mauriana e de Saboya, era descendente de
Girol, conde de Génova, n.° avô de D. João e de Fr. Gonçalo Velho;
na varonia provinha de Bertholdo, saxão de origem, vice rei d' Aries,
primeiro conde de Saboya (Morreu em 1027), i3.° avô dos já
mencionados. Por D.Thereza, ultima condessa de Portugal, bastarda,
descendiam, el-rei D. João II e Fr. Gonçalo Velho, dos condes e reis
da Navarra, dos condes e reis de Castella, dos reis de Leão, de
Sancho Sansão, conde da Gasconha, d'aquem, e da Navarra (Anno
83o), dos duques da Borgonha, etc. Estes nomes attestam a alta
nobreza de Fr. Gonçalo Velho, pelo íado materno, da sua nobreza
paterna temos dito o sufficiente para demonstrar que não cedia em
antiguidade e serviços á de sua mãe. Vè-se, pelo que fica exposto,
que Fr. Gonçalo Velho não só era um dos primeiros fidalgos de
Portugal mas de toda a Europa'. Para concluir o que até aqui temos
dito acerca da ascendência de Fr. Gonçalo Velho, deduzimos a
seguinte demonstração dos 1 Muitas outra* ligações tinha Frei
Gonçalo Velho com os reis da Hespanha, por exemplo: D. Moninho
Fernandes de Toronho, seu n.° avô, pelo lado Sousa, era filho
bastardo d'el-rei D. Fernando, de Castella, e, por conseguinte, tio da
condessa D. Thereza, mulher do conde de Portugal, D. Henrique de
Borgonha; o chamado infante D. Alboazar Ramires — cid Alboazar —
, segundo o iv nobiliário, seu ascendente, pelo mesmo lado, filho
bastardo de Ramiro II, rei de Leão, que, por outra linha, era 17.0
iivô de Frei Gonçalo Velho: etc.
lxviii lhante cingir uma espada, calçar umas esporas sem
ter ouvido a algazarra e visto o albornoz, desde os reis até ao mais
Ínfimo cavalleiro todos lobrigavam, alem do Mediterrâneo, a
miragem que no reinado de D. Manuel apparecia na índia, somente
com uma differença: o sentimento dos nobres do principio e meiado
do século xv quatro costados do primeiro descobridor, e a linha
femenina até onde podemos alcançar. Frei Gonçalo Velho,
commendador, na ordem de Christo, do castello de Almourol, da
Beselga, da Cardiga e das Pias. Descobridor da Terra Alta (1416) e
dos Açores (i43i-i432) Fernando Velho, cavalleiro da ordem de
Santiago, alcaide-mór e senhor, de juro e herdade, do castello e
terra Velleda, senhor do souto da Mercê, etc. D. Maria Alvares Cabral
Gonçalo Velho — o contador — D. Margarida Annes de Urro Álvaro
Gil Cabral, alcaide-mór e senhor da cidade da Guarda, senhor de
Azurara, Va lhelhas e Mantei gas, Folhada, Ta vares, Moimenta etc.
João Velho de Santa Logriça D. Marinha Soares Corrêa D. João Ayres
Urro D. ... de Figueiredo, herdeira de D. Maria Gonçalves Mofaro
Ayres Cabral, alcaide mordo castello de Portalegre D. Catharina
Annes de Loureiro Diogo Affonso de Figueiredo, senhor da quinta de
Santo André, etc. t). Constança Rodrigues Pereira, senhora do
Celleiro de Maceira, do prestamo das Quebradas e da quinta de
Santo André, etc. A linha femenina, de Fr. Gonçalo Velho, deduz-se
d'esta maneira : Frei Gonçalo Velho, filho de Fernando Velho e de D.
Maria Alvares Cabral ; neto, por esta senhora, de Álvaro Gil Cabral e
de
LXIX era cavalheiresco, honra o, fé tal o lemma por que
combatiam ; a maneira de sentir dos nobres do século xvi era
interesseira, honra e riqueza substituía, de uma forma mais pratica,
o ideal que desapparecêra com Affbnso V. Foi só depois de ter
mostrado, em Africa e na Hespanha, notável ex forço e grandíssima
coragem, que Frei Gonçalo Velho partiu para a primeira e mais
arrojada expedição de que ha noticia, depois da que o mesmo
navegador intentou e concluiu em 1431-1432'. Das praias D. , . . de
Figueiredo ; bisneto, por esta senhora, de Diogo Aftònso de
Figueiredo e de D. Constança Rodrigues Pereira; 3.° neto, por D.
Constança Rodrigues, de D. Ruy Vasques Pereira e de D. Maria de
Berredo ; 4.0 neto, por esta senhora, de D. Gonçalo Annes de
Berredo e de D. Sancha de Gusman; 5.° neto, por D. Sancha, de D.
Pedro Nunes de Gusman e de D. Ignez Fernandes de Lima ; 6.°
neto, por esta senhora, de D. Fernando Annes de Lima e de D.
Thereza Annes; 7.0 neto, por D.Thereza, de D. João Pires da Maia e
de D. Guiomar Mendes ; 8.° neto, por esta senhora, do conde D.
Mendo de Sousa, chamado — o sousão — , e da condessa D. Maria
Rodrigues ; 9.0 neto, por esta senhora, do conde D. Rodrigo Veloso
e da condessa D. Moninha Frojaz ; io.° neto, por esta senhora, do
conde D. Frojaz Vermuiz e de D. Sancha. E aqui se limita o que
pudemos alcançar acerca da ascendência femenina de Frei Gonçalo
Velho. Ainda notaremos a singular coincidência de ser, Fr. Gonçalo
Velho, commendador do castello de Almourol, reedificado por seu tio
5.° avô, D. Gualdim Paes, mestre da Ordem do Templo, e o infante
D. Henrique, regedor e governador da Ordem de Christo creada por
seu 3.° avô, D. Diniz, rei de Portugal. 1 Para se apreciar o erro nas
datas em Valentim Fernandes, veja-se o que elle escreve acerca das
YLHAS DOS AÇORES Anno de 1443 ho Iffante dom anrrique mandou
duas caravellas para occidente para buscar se achassem terra firme
ou nom. E em 270 legoas de lixboa acharom huma ylha que agora
se chama de sancta maria despovorada com muytos açores. E virom
outra e forom a ella que agora se chama de sam miguei também
despovorada e chea daçores, e assi acharom a terceyra
LXX arenosas da Terra Alta, alem do Bojador, foi avistar, no
Atlântico, o caminho da índia, e, voltando ao reino, deu noticia do
grande descobrimento que fizera. A marcha para Oeste só poderia
ser confiada a um homem que tivesse dado provas de valentia
extraordinária, porque, de outra maneira, voltaria logo que perdesse
a costa de vista, ou não chegaria a perdel-a, esse homem encontrou
o infante, quinze annos depois, em Frei Gonçalo Velho; fora
experimentado na guerra com os homens e na lucta com as ondas,
que o fosse na missão temerosa de descobrir a índia pelo Occidente,
e descobriu-a porque, se não chegou a tocar nas costas da America,
abriu o caminho para o Occidente que, até elle, ninguém, que
deixasse memoria, ousara afrontar; descobertas as ilhas a que
chamou Açores estava encontrada a America; Colombo assim o
julgou, assim o disse ao fatal D. João II. e outras todas com muytos
açores pello qual a estas ylhas ficou o nome dos açores '. Armo de
1444 mandou ho Iffante dom a(n)rrique por capitam huum
cavalleyro chamado gonçalo velho comendador da ordem de christos
a povorar esta ylha e outra. E pos a esta seu nomem s(aber) ylha de
gonçalo velho. E despois da sua morte lha poser rom nome ylha da
sancta maria. Este capitam lançou nella porcos e vacas e ovelhas e
cabras. E viveo nesta ylha alguns annos 2. Sam miguei ylha, foy assi
chamada porque no anno de 1445 ho Jffante dom pedro mandou
com aprazimento do Iffante dom anrrique seu jrmáo «fez» povorar e
lhe mandou poer nome sam miguei por singular devaçam que tinha
ao dito sancto. E seguiose sua morte em breve, pello qual ficou a
dita ilha ao Iffante dom anrrique 3. Já vimos o que disse Azurara
(Vol. I, pag. clxxxiii d'este trabalho, nota 1). ' Cf. Mss. da Bibliotheca
Nacional, pag. i;5. ■ Cf. Ibidem, pag. 176. * Cf. Ibidem, pag. 177.
LXXI Que mais diremos nós do homem que arfrontou os
terrores desde milhares e milhares de annos accumulados, que
destruiu as hypotheses de milhares de gerações, que ensinou qual
era a forma do* mundo, sem mais auxilio que a sua espada e o leme
da sua caravella, sem outros companheiros que não fossem alguns
devotados marinheiros e homens de armas? Somente devemos dizer
que tem elle a honra de ser um dos maiores homens do mundo,
senão o maior, e nós a de lhe ter erguido o munumento porque
esperava ha quatro séculos'. 1 Tendo demonstrado o parentesco de
Fr. Gonçalo Velho com D. João I, rei de Portugal, pae do infante D.
Henrique, demonstramos, agora, o parentesco de D. Filippa de
Lencastre, mãe do mesmo infante, com o mesmo navegador.
Henrique II, duque da Normandia, conde d'Anjou e do Maine, duque
de Guyenne e conde de Poiteau, rei de Inglaterra ; por seu pae,
descendente, na varonia, dos condes d'Anjou, até Tertullio,
governador do paiz de Rennes, pae de Ingelger, primeiro conde
d'Anjou, e, por sua bisavó, também paterna-, dos condes de
Gâtinais; descendente, por sua mãe, dos duques da Normandia,
entre os quaes se contavam Henrique I — -o bom clérigo — , rei de
Inglaterra, pae de Mathilde, herdeira d'este reino, sua mãe ;
Guilherme II — o bastardo — , conquistador e rei da Inglaterra, pae
de Henrique I; Roberto I — o diabo — , pae de Guilherme II, e,
seguindo a varonia, Guilherme I — longa espada — , filho do
norueguez Rollão, baptisado com o nome de Roberto (M. em 932),
que veiu a ser õ.° avô, na varonia, da mãe de Henrique II; seguindo
esta linha, procedia de Mathilde, da Flandres, casada com o
bastardo Guilherme II, filha de Balduíno V, conde da Flandres e
regente de França e de sua mulher Alix, de França, filha de Roberto
II, rei de França, filho de Hugo Capeto', duque de França, conde de
Paris e de Orleans, duque da Neustria, da Borgonha e da Aqui1
Hugo Capeto. também era ascendente (14.0 avô) de Fr. Gonçalo
Velho, pela linha de Borgonha, passando em Henrique de Borgonha,
conde de Portugal. D.Thereza, mulher d'este, g.a neta, na varonia,
de Sancho Sansáo, conde da Gasconha cTaquem, e da Navarra
(Anno 836) ; era 12.* neta de Pedro, duque de Cantábria, por sua
avó paterna D. Sancha, rainha de Leáo, mulher de D. Fernando I —o
grande — rei de Castella ; assim, Fr. Gonçalo Velho, também era,
mais de uma vez, descendente
LXXII tanea e rei de França ; Hugo Capeto era neto, na
varonia, de Roberto — o forte — de origem saxónica, conde de Paris
e d'Anjou e duque de França ; procedia, também, de Judith, da
Bretanha, mãe de Roberto — o diabo — , filha de Conan — o torto
— , conde de Rennes; pelo lado materno, de sua mãe, procedia
Henrique II, de Mathilde, sua avó, que foi cannonisada ; esta
procedia dos reis da Escócia, quebrada a linha varonil em Albanath,
governador das ilhas escocesas, que casou com Beatriz, 6.a neta de
Alpino, rei da Escócia, por 83o, em quem começa a chronologia
segura, este era 8." avô de Malcclm III, rei da Escócia, pae de
Mathilde, cannonisada; a mãe d'esta era Margarida (Santa
Margarida), padroeira da Escócia, filha de Eduardo, de Inglaterra,
7.0 neto de Egberto, rei de Wessex e rei de Inglaterra, destruída a
heptarchia, e de Agatha, da Hungria, filha de Estevam I, rei da
Hungria — apostolo da Hungria — , titulo que o papa lhe deu, foi
cannonisado, e de Gisela, irmã de Henrique II, imperador da
Allemanha ; Estevam I era bisneto de Zoltan, duque ou príncipe dos
húngaros, e de sua mulher, filha de Monunorout, duque de Dihar, e
4.0 neto de Almon, chefe dos madgyares, estabelecidos entre o Don
e o Dnieper : Casou Henrique II com Eleonora, repudiada de Luiz —
o joven— rei de França, e filha de Guilherme X, duque de Guyenne e
de Aquitanea Eleonora, duqueza de Aquitanea; c. c. D. Affonso III —
o bom e o nobre—, rei de Castella João — sem terra — conde de
Mortain e senhor da Irlanda, conde de Cornouailles, de Lencastre e
de Gloscester, rei de Inglaterra; c. c. Isabel, filha de Aimar, conde de
Angoulème D. Urraca, de Castella ; c. c. D. Affonso II, rei de
Portugal Henrique III, rei de Inglaterra; c. c. Eleonora, filha de
Raymundo V. conde de Provença D. Affonso III, conde de Bolonha,
regente e rei de Portugal; c. c. D. Beatriz de Gusmão, filha bastarda
de D. Affonso X, rei de Castella, e houve em (?) Legitimo: D. Diniz,
rei de Bastarda : D. Urraca AffonPortugal ; c. c. D. Isa- so; c. c. D.
João Mendes bel (Santa Isabel), filha de Briteiros de D. Pedro III, rei
de Aragão Eduardo I — o longo — rei de Inglaterra; c. c. Eleonora,
filha de Fernando III, rei de Castella Eduardo II, rei de Inglaterra,
primeiro príncipe de Galles, deposto; c. c. Isabel, filha de Filippe — o
bello — , rei de França
LXXII1 Legitimo: D. Diniz, rei de Portugal ; c. c. D. Isabel
(Santa Isabel), filha de D. Pedro III, rei de Aragão D. Affonso IV, rei
de Portugal; c. c. D. Beatriz, filha de Sancho IV, rei de Castella e de
Leão D. Pedro I, rei de Portugal ; houve em Theresa Lourenço D.
João I (Bastardo), mestre de Aviz, regente e defensor do reino e rei
de Portugal ; c. c. D. Filippa de Lencastre, filha de João — o grande
— duque de Lencastre, conde de Richemond, rei titular de Castella e
de Leão, rei da Aquitanea D. Henrique, duque de Viseu, senhor da
Covilhã. Bastarda : D. Urraca Affonso; c. c. D. João Mendes de
Briteiros D. Gonçalo Annes de Berredo; c. c. D. Sancha de Gusman
D. Maria Gonçalves de Berredo; c. c. D. Ruy Vasques Pereira, senhor
de muitas terras D. Constança Rodrigues Pereira; c. c. Diogo Affonso
de Figueiredo, senhor de muitas terras Eduardo II, rei de Inglaterra,
primeiro príncipe de Galles, deposto; c. c. Isabel, filha de Filippe — o
bello — , rei de França Eduardo III (Rosa vermelha), rei de Ingla.
terra, tomou o titulo de rei de França; c. c. Filippina, filha de
Guilherme, conde de Hainaut João — o grande— duque de
Lencastre, conde de Richemond, rei titular de Castella e de Leão, rei
da Aquitanea; c. c. Branca de Lencastre, filha herdeira de Henrique,
duque de Lencastre D. Filippa de Lencastre; c. c. D. João I
(Bastardo) rei de Portugal. D. ... de Figueiredo; c. c. Álvaro Gil
Cabral, alcaide-mór e senhor da Guarda, senhor de outras terras D.
Maria Alvares Cabral ; c. c. Fernando Velho, alcaide-mór de Yelleda
Fr. Gonçalo Velho, commendador do castello de Almourol, da
Beselga, das Pias e da Cardiga, e descobridor da Terra Alta e dos
Açores. Apesar de estudarmos, sob todos os pontos de vista
notáveis, a figura de Fr. Gonçalo Velho, não é nosso intento deduzir
os parentescos do commendador de Almourol com os homens mais
notáveis de que falia a Historia, é trabalho que facilmente se fará
LXXIV II obranceiro ás aguas que o cercam, altivo e
venerando, o castello de Almourol viu as legiões de Roma e as
peoadas germânicas, ouviu os adufes, os atavaques e os altancores
dos árabes, sentiu as charamellas dos castelhanos e dos
portuguezes, sempre, com serena magestade, vae recebendo o
tributo de vassallagem que o Tejo vem prestar-lhe, beijando-lhe a
soleira, docemente, como doces inda são conhecendo se o que fica
dito e documentado. Por ultimo deduziremos a linha de parentesco
de Fr. Gonçalo Velho com Affonso — o sábio—, rei de Castella e de
Leão, sem duvida um dos mais illustres parentes do grande
navegador. Mais remotamente iríamos buscar a linha de D. Affonso
VI, rei de Castella, por ser pae de D. Thereza, condessa de Portugal,
5.° avô de Affonso X — o sábio— por sua filha, D. Urraca, herdeira,
e u.° avô de Fr. Gonçalo Velho ; mais moderna é esta linha : D.
Affonso VIII (Pedro Raymundo), conde da Galliza, rei da Galliza,
Castella e Leão, coroado imperador da Hespanha; c. c. Beryngueira,
rilha de Raymundo IH, conde de Barcelona D. Fernando II, rei de
Leão; c. c. Thereza, filha de Nuno Peies de Lara D. Affonso X, rei de
Leão; c. c. Beryngueira, filha de Affonso III, rei de Castella I* D.
Fernando III —o santo—, rei de Castella e de Leão; c. c. Beatriz,
filha de Filippe de Suabia, imperador da Allemanha I'. Affonso X —o
sahio e o astrólogo — , rei de Castella e de Leão, eleito rei dos
romanos, pretendente ao throno imperial da Allemanha ; c. c.
Iolanda, filha de Jayme I, rei do Aragão. D . Sancho III, rei de
Castella ; c. c. Branca Sancha, filha de Garcia IV, rei da Navarra D.
Affonso III —o bom e o nobre — , rei de Castella; c. c. Eleonora,
filha de Henrique II, rei de Inglaterra D. Urraca ; c. c. D. Affonso II,
rei de Portugal D. Affonso III, conde de Bolonha, regente e rei de
Portugal, 6.° avô de Fr. Gonçalo Velho (Vid. vol. i, pag. clxxxvii, nota
1).
I.XXV as suas aguas; continuando, depois, a marcha
começada em Alberracim, com um murmúrio de espanto ou de
medo, monótono e encantador. Almourol é o único castello de
Portugal a que se ligam as mais curiosas lendas cavalheirescas1, é o
centro de uma epopêa medieval, perdida, disseminada pelos livros
de cavallarias e nos contos populares, muitos dos quaes hoje
esquecidos*, tem na historia dos Templários um papel notável e nos
annaes da Ordem de Christo um logar proeminente2; representa,
emfim, para nós, • Vid. por ex. : Palmeirim d' Inglaterra, por
Francisco de Moraes. 2 Doe. xciv. 0 sr. general Brito Rebello1, depois
de nos ter indicado os documentos que publicamos acerca dos
commendadores de AlmouroL, no vol. i d'este estudo, enviou-n'os os
documentos e notas seguinto: 1 — A ordem do templo e a João
domingues e mais freires d'Almourol doaçam que lhes fez Árias Dias
e sua mulher da terça parte dos seus bens, de 1201. In nomine
patris et filij et spiritus sancti Amen. Ego Árias dias et vxor mea
maria mendis fecimus hanc cartam domni templi et vobis fratri Joani
domingues vna cum fratr-ibus vestris de Almoriol pro remédio
animarum mostrarum damus uobis atque concedimus ad obitum
nostrum tertiam parten de nostro habere mobilen atque inmobilen
siue hereditatem siue ganatum : siue panem et vinum preter sua
roupa et in quaecumque promitimus in anno dare in vestro capitolo
vnum marabitinum videlicet quando fuerit capitulo vestro. et ego
Joanes dominges comendator de almoriol facimus cum eis hoc
pactum vt sint nostri familiares et sint nobiscum in nostra oratione et
in domibus templi. Jn era M .CC . XXX 1 O sr. general Brito Rebello
indicou-ifos, mais: o documento que está na nota ? de pag. 102, o
doe. DCI, e os documentos que se lêem na nota 1 de pag. 5o, na
nota 1 de pag. 129 (Bibliotheca Nacional), na nota 3 de pag. i63 e
na nota 1 de pag. 317. O sr. Pedro A. de Azevedo indicou-n'os o
documento que se encontra na nota 1 de pu_;. io3. Agradecemos ao
sr. general e ao sr. Azevedo ; agradecemos, também, ao >r. visconde
de Castilho, a certidão de baptismo de António Cabral da Cunha,
mandada tirar a nosso pedido por s. ex.a, e que está conforme com
a que publicámos (Doe. D( '. .
LXXV1 um velho guerreiro, carregado de serviços,
orgulhoso na miséria, impondo-se ao respeito e á veneração. Que se
pôde dizer d^ste castello? Muito pouco, as inscripçÕes que lá se
encontram, e no de Thomar, nada adeantam acerca da sua
fundação, faliam só da reedificação a que chamam principio ; que o
castello existia, antes, parece-nos indubitável por ser necessário
para a defeza das margens do Tejo, a via fluvial era a que servia
para os invasores, era mais commoda, nona . nos supra nominati qui
hanc cartam jussimus facere coram testibus manus nostras
roboramus qui presentes fuerunt et uiderunt Martinus gonçalues
frater testis. Martinus chames frater testis/ gonçalo tauira frater
testis. Martinus terrom frater testis. Martinho cambas testis . petrus.
zidis testis . Suerius menendes testis . petrus celeiro testis. Arch. da
Torre do Tombo. Cart. de Thomar, liv. 7, pag. 74. II — Extracto das
primeiras constituições da Ordem de Christo feitas pelo i.° Mestre D.
Gil Martins aos 11 de junho i32i e approvadas por el-rei D. Diniz no
mesmo dia. Jtem . outro haia a comenda daltnourol// Jtem outro
haia a comenda da cardigua/ e de cada hú deles duzentos
cinquoenta liuras en cada hú ano ao conuento . / Jtem no temporal
de tomar aja sex comendadores hum na uilla e cinquo no termo/
conuem a saber hum na beselga e outro no paul e outro no prado e
outro na lousaa e outro nas pias/ e dem em cada hum anno duas mil
quinhentas libras de responsom ao COnuentO./ Archivo da Torre do
Tombo. Cart. de Thomar.. liv. 7, pag. 22 e 23. III — Extracto das
segundas constituições da Ordem de Christo de 16 de agosto de
1326, feitas pelo 2.0 Mestre D. João Lourenço e approvadas por el-
rei D. Affonso 4.0 no mesmo dia. Nas pias haia hum commendador
caualleiro e haja todo aquello que rende esse logar das Pias e o que
mingoar pêra hauer comprimento de mil e cem liuras demlho das
rendas de thomar e tenha comsigo hum caualleiro freire guizado de
cauallo e armas E estes
The text on this page is estimated to be only 1.12%
accurate
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com