Comparative Analysis Using on Quick Sort, Bubble Sort and Bucket Sort
~ Java SE Application ~
A Comparative Analysis of T-shirts (having Color, Fabric and Size as attributes) implementing following functionalities:
• Create a list of random T-shirts
• Quick Sort Algorithm
• Bubble Sort Algorithm
• Bucket Sort Algorithm
• Use above algorithms to sort T-shirts' list by:
• Size in ascending order
• Size in descending order
• Color in ascending order
• Color in descending order
• Fabric in ascending order
• Fabric in descending order
• Size first, Color second and Fabric last in ascending order
• Size first, Color second and Fabric last in descending order\
Value | Size | Colors | Fabric |
---|---|---|---|
1 | XS | RED | WOOL |
2 | S | ORANGE | COTTON |
3 | M | YELLOW | POLYESTER |
4 | L | GREEN | RAYON |
5 | XL | BLUE | LINEN |
6 | XXL | INDIGO | CASHMERE |
7 | XXXL | VIOLET | SILK |
Executing the application all presentations are printed to user's console.
Unsorted T-shirts' list created for Quick Sort's presentation.
Unsorted T-shirts' list created for Bubble Sort's presentation.
Unsorted T-shirts' list created for Bucket Sort's presentation.