All pairs of numbers A.I, A.J with A.I+A.J=X
PROBLEM
Given an array of distinct numbers A.1,A.2,...,A.N and a number X. Determine all pairs of numbers A.I,A.J with A.I+A.J=X.
IMPLEMENTATION
Unit: fragment of a program
Interface: QUICKSORT Result: Program displays all pairs A.I,A.J with A.I+A.J=X
Literature
Knuth D. E. Sorting and Searching, vol. 3 of The Art of Computer Programming AddisonWesley, 1973
