import time import sys f=open("in10_9.txt",'r') f1=open("out_29_10c_9.txt",'w') import random def partition(begin,end): global count ### no of swaping global count1 ###no. of comparision global total ### time loc=random.randint(begin,end) a[loc],a[begin]=a[begin],a[loc] count=count+1 index=begin total+=sys.getsizeof(end)+sys.getsizeof(index)+sys.getsizeof(begin)+sys.getsizeof(count)+sys.getsizeof(count1) while begina[begin] and begin