















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Problem solving and introduction to programming languages
Typology: Study Guides, Projects, Research
1 / 55
This page cannot be seen from the preview
Don't miss anything!
















































PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
Defining a problem Determining the cause of the problem Identifying, prioritizing, and selecting alternative for asolution Implementing a solution PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
Different strategies are good for different problems
Divide and conquer Greedy method Dynamic programming Backtracking Branch and Bound PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
Defining or Analyzing the problem Design (Algorithm) Coding Documenting the program Compiling and running the program Testing and Debugging Maintenance PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
What specific values will be provided as input to theprogram? What format will the values be? For each input item, what is the valid range of values thatit may assume? What restrictions are placed on the use of these values? PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
What values will be produced? What is the format of these values? What specific annotation, headings, or titles are requiredin the report? What is the amount of output that will be produced? PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
Main elements of use-case diagram PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
Manage books, readers (staff, lecturers, and students), etc. - Manage borrow/return books
View/search books - Reserve books - Borrow/return books
PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
It breaks up the problem into a set of sub-problems calledModules It creates a hierarchical structure of the modules PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES
Definite Finite Precise and Effective Implementation independent (only for problem not forprogramming languages) PROBLEM SOLVING & INTRODUCTION TO PROGRAMMING LANGUAGES