Skip to content

This project demonstrates a specifically crafted adversarial input designed to expose weaknesses in the Quicksort algorithm.

Notifications You must be signed in to change notification settings

0xMotazMohamed/A-Killer-Adversary-for-Quicksort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

A-Killer-Adversary-for-Quicksort

This project implements a research paper that demonstrates how carefully constructed adversarial input can lead to worst-case performance in Java's Arrays.sort(), which uses a dual-pivot Quicksort algorithm. The project highlights how poor pivot selection can cause time complexity to degrade from its optimal case, illustrating the need for smarter pivot strategies. By generating these worst-case inputs, the implementation provides insights into how even highly optimized algorithms can fail under specific conditions, emphasizing the importance of robust algorithm design.

Research

https://www.cs.dartmouth.edu/~doug/mdmspe.pdf

Demo

https://www.youtube.com/watch?v=Ma9RhZ33Whs&t=57s

About

This project demonstrates a specifically crafted adversarial input designed to expose weaknesses in the Quicksort algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages