4th Period, Student Handbook Algorithms 2023 v1
4th Period, Student Handbook Algorithms 2023 v1
ACTIVO 20-30.
“ALBERT EINSTEIN.”
DIGITAL CULTURE 1.
Responsible:
LIC. Arturo Francisco Vargas Hernández.
Digital Culture 1. Fourth period.
Index.
GOALS FOR THIS PERIOD: .......................................................................................... 2
Terms for submitting activities, and values of each of them. ........................................... 3
OPENING. .......................................................................................................................... 5
Reading: Algorithms. .......................................................................................................... 5
WHAT IS AN ALGORITHM? .............................................................................................. 5
Characteristics of the algorithms:.................................................................................... 7
Recommendations for the writing of algorithms .................................................................. 7
Examples of algorithms. ................................................................................................. 8
DEVELOPMENT. ............................................................................................................... 9
THE PROBLEM-SOLVING METHODOLOGY. ............................................................. 10
WHAT IS A FLOWCHART? ............................................................................................. 13
SYMBOLS USED. ........................................................................................................ 13
CHARACTERISTICS OF THE FLOWCHARTS ............................................................ 14
DEVELOPMENT OF A FLOWCHART. ......................................................................... 15
ADVANTAGES OF FLOWCHARTS. ............................................................................ 16
RULES TO DESIGN FLOWCHARTS. .......................................................................... 16
EXAMPLE OF A FLOWCHART, using PSeInt. ............................................................. 17
CONDITIONAL OR SELECTIVE, STRUCTURES: ....................................................... 18
EXAMPLE DOUBLE CONDITIONAL STRUCTURE: .................................................... 20
SEQUENTIAL PROBLEMS. ............................................................................................. 22
SELECTIVE PROBLEMS. ............................................................................................ 23
CLOSURE. ....................................................................................................................... 24
EVALUATION OF THE FOURTH PERIOD. ..................................................................... 24
ANNEXES ........................................................................................................................ 25
SOME RECOMMENDED SITES FOR CARRYING OUT YOUR RESEARCH WORKS.
..................................................................................................................................... 25
Most common keys and their use ..................................................................................... 27
Some keyboard shortcuts in Windows. ............................................................................. 29
Bibliography...................................................................................................................... 30
Page 1 of 31
Digital Culture 1. Fourth period.
M1. You represent problem – solving through algorithmic thinking by selecting methods,
diagrams, and techniques.
M2. You apply algorithmic language using digital media to solve situations or problems
related to the context.
Page 2 of 31
Digital Culture 1. Fourth period.
Evaluation. 50%
Date:November, 2023.
Time: 8:20 a 9:10 a.m.
Format: You will take a written exam.
Way of working: Individual.
Page 3 of 31
Digital Culture 1. Fourth period.
Additional considerations:
1. Each activity must be submitted in due time and form.
2. In the case of team works, all team members must submit the activity in their
respective space on the platform.
3. About the activities done by teams, grades will be based on the paper review of only
one member of the team, then the document submitted through the platform must
be the same done by all the team, however, if someone does not submit their activity
it will be graded with zero, and considered as activity not completed.
4. The feedbacks to the works, in case of team activities, will be written only in one of
the team members’ comments spaces on the platform.
5. When you receive a grade, and your activity’s feedback, this does not mean that you
can redo your activity looking for a higher grade.
6. Make sure you read and understand each activity’s directions to fulfill your
assignment, not just to complete it.
7. Each paper done, must have their respective cover page, including all the data and
information of the activity, and who is the owner of the activity.
8. Remember if you encounter any issues accessing the platform, you may also submit
your activities, via email to: afvargash73@gmail.com provided that the activity
requirements are met, such as, not submitting or mailing the activity after the
deadline.
Page 4 of 31
Digital Culture 1. Fourth period.
OPENING.
Reading: Algorithms.
WHAT IS AN ALGORITHM?
To begin, we will start by defining the concepts of problem, and algorithm, identifing
their connection, and then we will start our work with the basics of programming logic.
Page 5 of 31
Digital Culture 1. Fourth period.
It is a very effective tool for tracking the logic of an algorithm and for easily
transforming algorithms into programs.
Page 6 of 31
Digital Culture 1. Fourth period.
Page 7 of 31
Digital Culture 1. Fourth period.
Examples of algorithms.
Page 8 of 31
Digital Culture 1. Fourth period.
DEVELOPMENT.
Page 9 of 31
Digital Culture 1. Fourth period.
Before talking about problem-solving methodologies, you must be very clear about
the concept of method, which throughout history has attracted the attention of a large
number of philosophers and scientists. The Larousse Dictionary defines the term method as
"the set of ordered operations with which a result is intended to be obtained". The
methodology is the science that applies this method.
The resolution of the problems consists of 5 stages that guarantee the correct arrival to
the solution:
The identification of the problem is a very important phase in the methodology since it
depends on the subsequent development in search of the solution. A well-defined problem
is a great help for the overall process to move well; an ill-defined problem will cause
conceptual deviations that will be difficult to remedy later.
At this stage, the analysis of the initial information (input) is essential to distinguish the
relevant data from those that are not, so that the most convenient configuration can be
chosen for the possible solutions.
Output data should also be defined to ensure the continuity of the process to make it
easier to eliminate negative expectations.
After the definition of the problem and the analysis of the input data, the process
continues with the analysis of the solution alternatives. In general, the solution to a
problem can be achieved in different ways.
It should be noted that it is not convenient to extend the number of alternatives too much
because if the number of these is too high, there will be a greater difficulty in choosing the
best of all, which is ultimately the objective of the process.
Page 10 of 31
Digital Culture 1. Fourth period.
After deciding which is the best alternative of all, the solution stage is reached.
In this phase, based on the data related to the selected alternative, the necessary
operations are applied to solve the problem.
The selection of the processes must also be determined based on the optimization, that
is, the operations must reach the solution by the shortest path to guarantee the greatest
efficiency in the operation.
If the alternative is the optimal one, it will lead to the desired solution that was foreseen
in the identification of the problem.
After having developed the solution, there is still one stage left, which is evaluation.
In this phase, the processes already carried out must be "polished" and try to take
them to a higher degree of optimization, since the most efficient algorithm in solving a
problem is the one that reaches its final objective with the greatest economy of procedures
that is possible.
Page 11 of 31
Digital Culture 1. Fourth period.
Example:
Carolina knows that in the market is promoting two sodas for $ 19.50, she
has $ 78.00 pesos and wants to know, how many sodas she can buy?
Statement: If two sodas cost $19.50, how many can we buy with $78.00?
$ 78 / $ 19.50= 4
2. Exploring alternative 4*2= 8 sodas
solutions. $ 19.50 / 2= $ 9.75
$ 78 / $ 19.50 =4
3. Select an alternative
$ 78/ $ 19.50= 4
solution.
4*2= 8 sodas.
1. 1. Start.
2. 2. Get the price of sodas.
3. 3. Get the amount of money she has.
4. 4. Divide the amount of money by the price of sodas.
4. The Implement of
5. 5. Multiply the result of the division by the number of sodas that
the solution.
integrates the price.
6. 6. Show the number of sodas that can be purchased with that
amount of money.
7. 7. Stop.
1. Start.
2. Price: 19.50
3. Money: 78.00
5. The evaluation of the
4. 78.00 / 19.50= 4
solution.
5. 4*2= 8
6. "She can buy 8 sodas"
7. Stop.
Page 12 of 31
Digital Culture 1. Fourth period.
WHAT IS A FLOWCHART?
A FLOWCHART is the graphical representation of an algorithm. They
are based on the use of various symbols to represent specific operations.
SYMBOLS USED.
The symbols used for the design are subject to standardization. This
means they became almost universal symbols, since, in the beginning,
each user could have their symbols to represent his processes in the form
of a flowchart. This meant that only those who knew their symbols could
interpret them.
Page 13 of 31
Digital Culture 1. Fourth period.
Inside this figure, the variable with the final result or the
message representing the final result will be written
Page 14 of 31
Digital Culture 1. Fourth period.
DEVELOPMENT OF A FLOWCHART.
✓ Establish the scope of the process to be described. In this way, the beginning and the
end of the process will be fixed. Frequently the beginning of one process is the output
of the previous process, and the end of one process is the beginning of the next process.
✓ Identify and list the main activities/sub-processes which are included in the whole
✓ If the level of detail defined includes minor activities, they must be listed as well.
corresponding symbols.
✓ Assign a title to the diagram and verify that it be complete and accurately describes
Page 15 of 31
Digital Culture 1. Fourth period.
ADVANTAGES OF FLOWCHARTS.
There are certain rules for the design of flowcharts, which must be
followed to give a proper interpretation of the algorithm, these are:
• The symbols are joined with flow lines, which thanks to their arrows they
• The text included in the symbols must be concrete, precise, and easy to read.
• The decision symbol is the only one that has more than one output flowline.
• All the symbols, except the end symbol, can have more than one output flowline.
Page 16 of 31
Digital Culture 1. Fourth period.
Problem statement: Do an algorithm to calculate the sum of two numbers and represent the algorithm
graphically.
Process:
Sum = A + B
Output:
The result is the sum.
Page 17 of 31
Digital Culture 1. Fourth period.
✓ Sequential: This consists of placing each instruction one after the other
without any type of skips in the sequence.
Page 18 of 31
Digital Culture 1. Fourth period.
Condition
yes Tasks to do if
the condition is
Multiple conditional: This carries out
1 affirmative. instructions, depending on the
condition selected, It is similar to
ye Tasks to do if
Condition s the condition is working using several double selective
2 affirmative.
structures.
ye Tasks to do if
Condition s the condition is
3 affirmative. The example shows the Case structure.
Page 19 of 31
Digital Culture 1. Fourth period.
Process:
If age >=18
Output:
Page 20 of 31
Digital Culture 1. Fourth period.
Instructions: Use the problem-solving methodology (following the model shown in the
table below), and solve the next series of sequential problems.
Problem 1.
Wording example: Carolina knows that in the market they have a promotion of two
sodas for $ 19.50, she has $ 78.00 pesos and wants to know, how many sodas can she
buy.
Problem Analysis.
Input. (What data will be entered into
the computer.)
Process. (What is the follow-up Example: Here you will write an example of the
process, step-by-step to get the algorithm, but using and describing what is the
solution. input data, the steps of the process and the
Output. (What is the information we solution offered.
get once the algorithm is done.)
Page 21 of 31
Digital Culture 1. Fourth period.
SEQUENTIAL PROBLEMS.
3. Given the length of the sides of any triangle, calculate the hypotenuse.
total monthly sales, they want to know how much money they will get in
commissions for three sales they made in a month and the total to receive
5. A student wants to know what his final grade in the subject of Digital
Page 22 of 31
Digital Culture 1. Fourth period.
SELECTIVE PROBLEMS.
For the following selective problems, you will use the table below, where you will
add the steps of your algorithm to achieve the solution, and draw the flowchart,
inserting the forms available in Word.
Process:
Output:
Flowchart.
2. Ask the age of a person, and based on the number entered, display the
message, “is not of legal age” otherwise “is of legal age”. (From 18 onwards,
it will be considered the majority of age).
Page 23 of 31
Digital Culture 1. Fourth period.
4. Calculate the total cost of a given number of items. A 15% discount is applied
if the amount exceeds $1000.00.
5. Show how a student did on an online exam. To achieve this, the grades of
the two attempts will be read and compared, and the grade will be the higher
of the two grades. The message on the screen should also show which grade
he got first, which grade he got second, and which grade he got as his final
grade.
CLOSURE.
Evaluation. 50%
Page 24 of 31
Digital Culture 1. Fourth period.
ANNEXES:
https://scholar.google.es/schhp?hl=es
It allows searches of varied information supported by the Google search engine, the
advantage of this site is that it allows you to make citations of works used in a relatively
simple way, such as in APA format.
https://dialnet.unirioja.es/
It allows you to search for information, in databases of books, journals, documents, among
others, for academic works, it has brief summaries.
Refseek.
https://www.refseek.com/
https://www.jstor.org/
It is a search engine with a large database of humanities materials especially, like Google
Scholar, JSTOR allows citations of the contents taken, with relative ease.
https://pubmed.ncbi.nlm.nih.gov/
Although the site and content are both in English, it also allows you to make references
easily to follow APA format.
Page 25 of 31
Digital Culture 1. Fourth period.
https://furwee.ai/home
It allows you to ask questions and get answers about any topic, its interface follows an
attractive presentation for children, but the questions and answers it offers can be applied
to any academic level and topics.
Disadvantage: It takes time to load, but once the program is executed, it works
comfortably.
Page 26 of 31
Digital Culture 1. Fourth period.
“Bloq Mayús” normally appears above the "Shift" key on the keyboard,
the main difference with the previous key, is that it is not necessary to
have it pressed to write everything in uppercase, it is only pressed to
activate the capitalization and pressed again to deactivate them.
Page 27 of 31
Digital Culture 1. Fourth period.
Note: "When you see the " + " sign between one key and another,
it does not usually mean that you have to also press the plus sign,
but it refers to the fact that you have to press one key followed by
the other without releasing them to execute an instruction, when it was already executed
we release the keys pressed.
Page 28 of 31
Digital Culture 1. Fourth period.
Alt + Tab.
By pressing them allows us to navigate between the
applications that we have open at that time, on our computer.
Ctrl + C
This combination allows us to copy what is selected, it can be
text, images, etc.
Ctrl + V
Combination that when pressed allows us to paste what we
have copied before, or that we have cut.
Ctrl + X
This combination, allows you to cut something from a document,
does not delete it as the "delete / del" key does it, or copy the content as the “Ctrl + C”
combination does it, but it removes the content from a place, what we have selected and
leaves it temporarily saved in the “RAM” memory so that we can paste it elsewhere with the
“Ctrl + V” combination or by pressing the right mouse button and choosing the “paste”
option, even when using the “Windows key + V” to use Windows clipboard.
Page 29 of 31
Digital Culture 1. Fourth period.
Bibliography.
Cultura digital 1.
Patricia Ibáñez Carrasco.
Cengage.
Unidad 4. Procesamiento y presentación de información en línea.
Page 30 of 31
Digital Culture 1. Fourth period.
P. Ignacio Larrañanga.
Conferencia, “Del Sufrimiento a la Paz.”
Page 31 of 31