Slide 1The Average Case Complexity of Counting Distinct Elements David Woodruff IBM Almaden Slide 2 Problem Description Given a data stream of n insertions of records, count…