University of Turkish Aeronautical Association  Merkez Campus
Algorithms and Data Structures 1
CENG 201

Fall 2016
Introduction to
Algorithms
Introduction to Algorithms
1 The Concept of an Algorithm
2 Algorithm Representation
3 Iterative Structures
4 Recursive Structures
5 Efficiency and Correctness
02
Definition of Algorithm
An algorithm is an ordered set of
unambig
University of Turkish Aeronautical Association  Merkez Campus
Algorithms and Data Structures 1
CENG 201

Fall 2016
Introduction to Programming
A computer is not intelligent. It cannot analyze a problem and
come up with a solution.
A human (the programmer) must analyze the problem, develop
the instructions for solving the problem, and then have the
computer carry out t
University of Turkish Aeronautical Association  Merkez Campus
Algorithms and Data Structures 1
CENG 201

Fall 2016
CENG111 FALL 2017  1st QUIZ
Duration: 120 minutes
Q1.(9 pts) What is the output of the program below?
public class Q1 cfw_
public static void main(String[] args) cfw_
int a = 1, b = 2, c = 3;
String str = "my string: ";
System.out.println(a + b + " : " +
University of Turkish Aeronautical Association  Merkez Campus
Algorithms and Data Structures 1
CENG 201

Fall 2016
CENG111 FALL 2017  1st QUIZ
Duration: 120 minutes
Q1.(9 pts) What is the output of the program below?
public class Q1 cfw_
public static void main(String[] args) cfw_
int a = 3, b = 1, c = 4;
String str = "my string: ";
System.out.println(a + c + " : " +