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 (41.9k points) | 12 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,647 questions
56,492 answers
100,695 users