ITE 031-DATA STRUCTURE AND ALGORITHM

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/23

flashcard set

Earn XP

Description and Tags

SAS 2,3

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

They frame the organization of information so that machines and humans can better understand it.

Data Structures

2
New cards

They are a step by step instructions that are used to solve the problem of a task

Algorithms

3
New cards

The common ways to organize the data

Lists

Array

Stacks

Queue

4
New cards

This contains elements of one particular data type

List

5
New cards

This is a data structure where the elements are identified by one or more

indices

Array

6
New cards

This way of organizing data follows the last in first out rule

Stack

7
New cards

Primitive data types include

Integer

floating-point (float, double)

Boolean (bool)

Character (char)

Byte

8
New cards

These data types are predefined (already defined) in Java.

Primitive data types

9
New cards

These types are created by the programmer and is not defined by Java (except for String ).

Non-primitive data types

10
New cards

They frame the organization of information so that machines and humans can better understand it.

Data Structures

11
New cards

what 2 methods can you use to convert to string to java

String.valueOf() and integer.toString()

12
New cards

what are the best 2 languages used of learning data structure

C++ and Java

13
New cards

what is the difference between C++ and java

c++ is for level programming whilw java is for high level programming

14
New cards

This is a way of converting data from one data type to another data type. This process of data conversion is also known as type conversion or type coercion.

TypeCasting

15
New cards

Characteristics of algorithm

Algorithm should be Unambiguous

  1. algorithm should have 0 or more inputs

  2. algorithm should have 1 or more outputs

  3. algorithm should be feasible with the available resources

  4. algorithm should be independent

16
New cards

This Math.abs(x) returns what

Returns the absolute (positive) value of x

17
New cards

This Math.random() returns what

Returns a random number between 0.0(inclusive), and 1.0 (exclusive)

18
New cards

This describes the complexity of a code using algebraic terms

Big O notations

19
New cards

This gives us an idea of how complex the algorithm is with respect to the input size

O

20
New cards

This answers the questions of how many resources such as disk space or time

Algorithm analysis

21
New cards

This algorithm means it grows directly proportional to the size of the inputs

Linear time algorithm

22
New cards

These are a block of code that runs only when it is called

Method

23
New cards

These are methods that are used to perform a particular task and action

Function

24
New cards

This way of organizing data follows the first in first out format

Queue