c359768e257a7bcbfe93e137a0fc1e81b92d6573,sorts/bitonic_sort.py,,,#,46
Before Change
a = []
n = int(input().strip())
for i in range(n):
a.append(int(input().strip()))
up = 1
sort(a, n, up)
print("\n\nSorted array is")
After Change
if __name__ == "__main__":
user_input = input("Enter numbers separated by a comma:\n").strip()
unsorted = [int(item.strip()) for item in user_input.split(",")]
bitonic_sort(unsorted, 0, len(unsorted), 1)
print("\nSorted array in ascending order is: ", end="")
print(*unsorted, sep=", ")
bitonic_merge(unsorted, 0, len(unsorted), 0)
print("Sorted array in descending order is: ", end="")
print(*unsorted, sep=", ")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: TheAlgorithms/Python
Commit Name: c359768e257a7bcbfe93e137a0fc1e81b92d6573
Time: 2020-12-08
Author: 58473917+Joe-Sin7h@users.noreply.github.com
File Name: sorts/bitonic_sort.py
Class Name:
Method Name:
Project Name: TheAlgorithms/Python
Commit Name: c359768e257a7bcbfe93e137a0fc1e81b92d6573
Time: 2020-12-08
Author: 58473917+Joe-Sin7h@users.noreply.github.com
File Name: sorts/bitonic_sort.py
Class Name:
Method Name:
Project Name: scikit-multiflow/scikit-multiflow
Commit Name: d2edcf9d03de65f28aca4777cfa83e9625baebb1
Time: 2017-06-16
Author: guilhermekmatsumoto@gmail.com
File Name: skmultiflow/core/utils/data_structures.py
Class Name:
Method Name:
Project Name: TheAlgorithms/Python
Commit Name: f9f5d402d390329b5b88b33c9ce4d625a87917cd
Time: 2018-10-16
Author: darjiharshil2994@gmail.com
File Name: sorts/bubble_sort.py
Class Name:
Method Name: