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\
T-shirt Attibutes' Values
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.
Quick sort based on size in ascending order.
Quick sort based on size in descending order.
Quick sort based on colors in ascending order.
Quick sort based on colors in descending order.
Quick sort based on fabric in ascending order.
Quick sort based on fabric in descending order.
Quick sort based on firstly size, then colors and lastly fabric in ascending order.
Quick sort based on firstly size, then colors and lastly fabric in descending order.
Unsorted T-shirts' list created for Bubble Sort's presentation.
Bubble sort based on size in ascending order.
Bubble sort based on size in descending order.
Bubble sort based on colors in ascending order.
Bubble sort based on colors in descending order.
Bubble sort based on fabric in ascending order.
Bubble sort based on fabric in descending order.
Bubble sort based on firstly size, then colors and lastly fabric in ascending order.
Bubble sort based on firstly size, then colors and lastly fabric in descending order.
Unsorted T-shirts' list created for Bucket Sort's presentation.
Bucket sort based on size in ascending order.
Bucket sort based on size in descending order.
Bucket sort based on colors in ascending order.
Bucket sort based on colors in descending order.
Bucket sort based on fabric in ascending order.
Bucket sort based on fabric in descending order.
Bucket sort based on firstly size, then colors and lastly fabric in ascending order.
Bucket sort based on firstly size, then colors and lastly fabric in descending order.
Java 8
Apache NetBeans IDE