Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
5 votes
1 answer
146 views

Sorting songs with the ability to save and resume partial sorts

I listen to a lot of music (~4k h/y) and managing thousands of songs is a bit of a challenging. To improve my listening experience I want to better organize my collection. One thing I want to do is ...
Peilonrayz's user avatar
  • 44.2k
6 votes
2 answers
322 views

A selection sort implemented in Python

I'm not proficient at Python. My question is twofold: whether this selection sort algorithm implementation for number lists could be considered clean code (in the sense of being modular and ...
Piovezan's user avatar
  • 267
1 vote
1 answer
182 views

Insertion Sort- inserting from the left

I've implemented my own insertion sort algorithm, and here's the code. ...
Jacques's user avatar
  • 13
3 votes
0 answers
134 views

Breadth First Search Block Puzzle

I am creating a program that will be given a text file as output with the board's dimension and the piece id along with the piece width and length. The goal is to arrange all blocks in the board ...
Mperez's user avatar
  • 39
5 votes
1 answer
146 views

Quicksort Algorithm Speed

I have made a sorting algorithm in Python 3. This sorting algorithm is a modified optimized median of 3 quicksort, with network sorting for lists of size up to 16 and for finding the median. I have ...
Sola Sky's user avatar
  • 113
1 vote
0 answers
139 views

Making This "Fancy" Sort Algorithm a Little Better

This is my code: ...
Jacob Hornbeck's user avatar
3 votes
1 answer
131 views

Mergesort in python

My mergesort implementation currently takes a very long time, for a list with 1 million elements it takes over 130 seconds to get the list sorted. Could someone kindly have a look at my code and ...
Nishil Patel's user avatar
3 votes
1 answer
163 views

Sorts and data structures: a bucket sort

I am currently going through and implementing basic algorithms and data structures as I feel I didn't learn enough about this during my Data Structures and Algorithms unit. So far I've done the ...
Vehicular IT's user avatar
3 votes
1 answer
59 views

SelectionSort Algorithm using Python

I am a rookie and I need help optimizing this SelectionSort() algorithm which I have tried using Python. ...
ashwin2125's user avatar
2 votes
0 answers
83 views

Python's quicksort algorithm

I was playing around with sorting methods, brushing up on my algorithms. I have made the following implementation of quicksort: ...
revliscano's user avatar
1 vote
2 answers
177 views

QuickSort Algorithm (Python)

This is my implementation of Quick Sort Algorithm : ...
soufiane yes's user avatar
4 votes
1 answer
806 views

Python implementation of Kahn's Algorithm

Please provide any suggestions on the below code for Kahn's algorithm. Can it be implemented in a better manner, or be improved: ...
Saurabh's user avatar
  • 445
5 votes
1 answer
1k views

Tarjan's Algorithm Python Implementation

I'm planning to use Tarjan's algorithm for a program in which I would be processing a file, converting the processed data to a dictionary, doing a topological sort on that dictionary (using this ...
Saurabh's user avatar
  • 445
3 votes
2 answers
407 views

Heap Sort in Python

NOTE: I am beginner in Python I learnt the Heap sort today and tried my own implementation using Python. Can i get feedback for my code and areas of improvement. I have tried to add comments inline, ...
prabh's user avatar
  • 151
1 vote
1 answer
219 views

Novel sorting algorithm

I have devised a novel sorting algorithm, named Oracle Sort, which I believe is far superior to all currently known sorting algorithms (under certain assumptions). It utilizes an oracle to achieve a ...
kokotko1's user avatar

15 30 50 per page
1
2 3 4 5