MyriadColors
MyriadColors
Explore posts from servers
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
ty
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
Ok, I will keep it in mind. I will come back tomorrow to read what you have written again.
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
I´ve been coding all day now lol
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
Hmm, let me come back to this tomorrow, I need to go to sleep rn. In any case, thank you very much. Hopefulyl I will understand with a fresher mind.
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
(nor if this was what you were askign about)
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
I am not sure about the specifics though.
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
Do what? Merge? I would see if there si any values in B that belongs in between min(A) and Max(A), fi so I would try to find where exactly that value would fit. If there isn´t, i would need to see if A comes after or before B.
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
right?
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
i may have [1,3,6] and [10,12,15]
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
Right, but they may not be immediate lists like this.
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
Am i on the right track?
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
So let me try to abstract the details right now: Say I wish to merge and sort two lists: A = [1,2,3] and B = [4,5,6] If I take A[0] and B[0], then the merged list would start with [1,4] and so on until i ave the completed merged list. But if i understand what you mean, you want me to see if A is already ordered, and see if it comes before or after B. So I would just merge them like M = [A,B] instead of "manually" sorting the two arrays into M.
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
I udnerstand.
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
Hm, give me a moment to think this through.
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
I take it you mean "unordered" by "non-processed".
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
So I would find the unordered elements in the lists and start from there?
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
I could do a insertion sort on the merged list of left and right?
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
(im sorry, i am very new at programming)
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
With a for loop?
48 replies
CC#
Created by MyriadColors on 4/19/2023 in #help
❔ Weird performance behavior with sorting algorithms.
that´s the meat of the MergeSort
48 replies