Prefix sum is a technique that involves creating a running total as you move through a list of numbers.Binary search is a technique used to efficiently find a target value in a sorted list by repeatedly dividing the search space in half.Prefix sum allows for fast calculation of the sum of any range in an array.Both prefix sum and binary search are powerful techniques that can greatly improve the efficiency of programs.