Skip to content

Create Brick_Sort.java#51

Open
meenuarora456123 wants to merge 1 commit intopuruagarwal1:mainfrom
meenuarora456123:patch-1
Open

Create Brick_Sort.java#51
meenuarora456123 wants to merge 1 commit intopuruagarwal1:mainfrom
meenuarora456123:patch-1

Conversation

@meenuarora456123
Copy link

This is basically a variation of bubble-sort. This algorithm is divided into two phases- Odd and Even Phase. The algorithm runs until the array elements are sorted and in each iteration two phases occurs- Odd and Even Phases. In the odd phase, we perform a bubble sort on odd indexed elements and in the even phase, we perform a bubble sort on even indexed elements.

This is basically a variation of bubble-sort. This algorithm is divided into two phases- Odd and Even Phase. The algorithm runs until the array elements are sorted and in each iteration two phases occurs- Odd and Even Phases.
In the odd phase, we perform a bubble sort on odd indexed elements and in the even phase, we perform a bubble sort on even indexed elements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant