The Algorithm Problem Solving Approach in Psychology
algorithm Types of algorithms · Greedy algorithm · Dynamic Programming algorithm · Divide and Conquer algorithm · Recursive algorithm · Brute Force
Characteristics of an Algorithm: · Clear and Unambiguous: The algorithm should be unambiguous · Well-defined Inputs: If an algorithm says to algorithm Algorithm Examples, #1: Binary Search · Find the midpoint of the sorted array · Compare the midpoint to the value of interest · If the midpoint is larger than
algorithm Types of algorithms · Greedy algorithm · Dynamic Programming algorithm · Divide and Conquer algorithm · Recursive algorithm · Brute Force
algorithm Characteristics of an Algorithm: · Clear and Unambiguous: The algorithm should be unambiguous · Well-defined Inputs: If an algorithm says to
Algorithm Examples, #1: Binary Search · Find the midpoint of the sorted array · Compare the midpoint to the value of interest · If the midpoint is larger than