7 algorithm design and problem solving Flashcards
what are components of PDLC
analysis, design, coding, testing
what are tasks needed at analysis stage of PDLC
abstraction, decomposition of problem, identification of problem and requirements
what are tasks needed at design stage of PDLC
decomposition, structure diagrams, flowcharts, pseudocode
what are tasks needed at coding stage of PDLC
writing program code, iterative testing
tasks needed at testing stage of PDLC
test program code using test data
how can problem be decomposed to component parts
inputs, processes, outputs, storage
how to linear search
how to bubble sort
what is the need for validation checks
helps programmer ensure any input is possible and sensible
what are the types of validation checks
range, length, presence, format, check digit, type
explain a type check
checks if input is of correct data type
explain range check
checks if input is in correct range
explain presence check
checks is all required data has been entered, eg rejecting blank inputs
explain format check
checks if input is in right format, eg dates, postcodes
explain length check
checks if input has correct/min/max number of characters