c359768e257a7bcbfe93e137a0fc1e81b92d6573,sorts/bitonic_sort.py,,,#,46

Before Change


        a.append(int(input().strip()))
    up = 1

    sort(a, n, up)
    print("\n\nSorted array is")
    for i in range(n):
        print("%d" % a[i])

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=", ")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: rushter/MLAlgorithms
Commit Name: 33d2662530633b7d60cdecf32ec162a9d0e0182d
Time: 2016-11-19
Author: me@rushter.com
File Name: mla/ensemble/tree.py
Class Name: Tree
Method Name: _find_splits


Project Name: ANTsX/ANTsPy
Commit Name: 6286ba014120ce05b49302007a0a28feed6d98c4
Time: 2020-09-10
Author: stnava@gmail.com
File Name: ants/segmentation/joint_label_fusion.py
Class Name:
Method Name: joint_label_fusion


Project Name: hmmlearn/hmmlearn
Commit Name: e6950084bbf5671b047046738b9f5e52ee9ed715
Time: 2018-10-23
Author: anntzer.lee@gmail.com
File Name: lib/hmmlearn/hmm.py
Class Name: MultinomialHMM
Method Name: _check_input_symbols