this is discrete maths in computer science problems
10): Consider: Mystery Algorithm Input: a1, a2, …, an n, the length of the sequence p, a number Output:?2 While (i < j) While (i <j and ai < p) ii+1 End-while While (i < j and aj z p) End-while If (i < j), swap ai and aj End-while Return( a1, a2,…,an) Run the algorithm using the sequencee 6 And p 1 10 -9 8
OR
OR