The Gateway to Computer Science Excellence
0 votes

Suppose that we were to rewrite the for loop header in line $10$ of the COUNTINGSORT as 

10   for j = 1 to A.length

Show that the algorithm still works properly. Is the modified algorithm stable?

in Algorithms by Boss (42.5k points) | 15 views

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,376 answers
105,311 users