






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







2024 LEC DAISY OINDI KEMUNTO KCA UNIVERSITY |
EMAIL: [email protected] COURSE OUTLINE; Simple and abstract data types. Application and implementation of: Lists Stack Queue Trees graph Sorting algorithms Searching algorithms Merge algorithms Computer storage management
Characteristics of a Data Structure
structure in such a way that all items may not be required to be searched, and the required data can be searched almost instantly. ๏ It is important to note the essence of time in dealing with data structure. This brings us to compare execution times Execution Time Cases ๏ Execution Time Case Three cases are usually used to compare various data structures' execution time relatively.
๏ An algorithm should have the following characteristics
๏ Genetic algorithms and randomized approach will help us to retain that job in the changing market. WAYS OF WRITING AN ALGORITHM ๏ There are three basic ways of writing algorithms in programming. ๏ They include:
4. The amount of time required by an algorithm to perform Arithmetic operations, logical operations, return value and assignment operations, etc., 5. Input data N/B; When we calculate the time complexity of an algorithm, we consider only input data and ignore the remaining things, as they are machine-dependent. ๏ผ Calculating the Time Complexity of an algorithm based on the system configuration is a very difficult task because the configuration changes from one system to another system. To solve this problem, we must assume a model machine with a specific configuration. So that, we can be able to calculate generalized time complexity according to that model machine. Example; Let us assume we have a machine with the following configuration;
Let us now Calculate the time complexity of an algorithm Example of a code; int sum(int a, int b) { return a+b; } Simply above, the code requires;
No. of times
Total