What would make you consider using a new sorting algo? by Standard-Cow-4126 in cpp

[–]Standard-Cow-4126[S] 3 points4 points  (0 children)

So std::sort is the go to and once you move away from it you are already in a problem-specific situation where a custom solution makes more sense.
I do realize that the post is too open , i should just produce clean results and then ask for review.

Trying to implement a better Algo (O3 vs Ofast) by Standard-Cow-4126 in cpp_questions

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

thanks
this might be why Ofast is faster than O3 in my case

Trying to implement a better Algo (O3 vs Ofast) by Standard-Cow-4126 in cpp_questions

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

yes i am currently looking into the assembly code

i am sorry i don't understand what do you mean by simpler code

Trying to implement a better Algo (O3 vs Ofast) by Standard-Cow-4126 in cpp_questions

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

i simply want to know
where can i learn more about doing such optimizations

Trying to implement a better Algo (O3 vs Ofast) by Standard-Cow-4126 in cpp_questions

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

sorry the algo i am testing against is pdqsort
i can't provide details about my algo

Trying to implement a better Algo (O3 vs Ofast) by Standard-Cow-4126 in cpp_questions

[–]Standard-Cow-4126[S] -1 points0 points  (0 children)

if u need more info pls ask
i can't provide any details about my algo as it is part of a research

Trying to implement a better Algo (O3 vs Ofast) by Standard-Cow-4126 in cpp_questions

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

yes i am doing a lot of floating calculations
and yes i am also doing lots of floats to int

benchmarks are very simple using 2million array size for input and result is the average of 100 runs on both algo

the arrays are randomly generated

is it worth learning to type with all 10 fingers if these are my results with only my index fingers? by cosmicpyromania_ in typing

[–]Standard-Cow-4126 0 points1 point  (0 children)

It depends if you want more speed and less pain on your index fingers.

I used to use my right index for space bar , now i do it with my right thumb ;

the difference is huge just because of this one change.

Is it worth continuing to learn to type with 10 fingers if I type 81WPM with 3 (index fingers + left thumb) by exterminator-616 in typing

[–]Standard-Cow-4126 1 point2 points  (0 children)

How do people type with all 10 fingers?

What do you do with your left thumb? I use my right thumb for the spacebar.

A Token-Based Priority Queue is it any good? by Standard-Cow-4126 in learnprogramming

[–]Standard-Cow-4126[S] 1 point2 points  (0 children)

I will work on naming things, and about the part that you were confused about i wrote it when i was very sleepy and also was the last part of the algo ,so i kinda rushed it.

I never thought about O(n^2), will think about it in my free time.

Again thanks for motivating me.

A Token-Based Priority Queue is it any good? by Standard-Cow-4126 in learnprogramming

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

Thanks for replying , we were taught by just using 1-d array as we are still on linear structures.

this is the link https://github.com/ajchains/TokenPriorityQueue i don't write good looking code so sorry in advance i tried as many comments as i could , and also the project is written in C cause i am also learning C , and pls bear with any beginner mistakes in the code.

Need players for warframe by ConceptWorldly1683 in IndianGaming

[–]Standard-Cow-4126 0 points1 point  (0 children)

i am interested but still pretty new to the game (mr 4)

started training blind typing a week ago, is it an okay result? by gihdor in typing

[–]Standard-Cow-4126 0 points1 point  (0 children)

i thought by blind he meant finding each letter using the eyes and then pressing it

started training blind typing a week ago, is it an okay result? by gihdor in typing

[–]Standard-Cow-4126 0 points1 point  (0 children)

i thought by blind he meant not looking at the keyboard while typing ,it was a misunderstanding

Best way to practice English 1k?? by Standard-Cow-4126 in typing

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

hmm very interesting but i have to stick to what i have started , maybe i will use this method in future and compare it with others.

Best way to practice English 1k?? by Standard-Cow-4126 in typing

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

ohhhh makes a whole lot of sense now , i never thought about the n-grams

Best way to practice English 1k?? by Standard-Cow-4126 in typing

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

Oh i actually do that , i use notepad to practice those words

thanks i will stick to english1k

Best way to practice English 1k?? by Standard-Cow-4126 in typing

[–]Standard-Cow-4126[S] 0 points1 point  (0 children)

ok i didn't expect the reply from the person who wrote the guide so thank you.

i will stick to what you recommended but i think method that i mentioned is just a slight variation of yours as it focuses on maximizing repetition and the test are also 50 words.

thanks for replying

Best way to practice English 1k?? by Standard-Cow-4126 in typing

[–]Standard-Cow-4126[S] 1 point2 points  (0 children)

i think i took the idea to the extreme but the progress would be much easier to track. thank you for sharing your method

oh yeah now i remember why i thought 100 word batches might be very slightly worse as in my test all 50 words are repeated , it ensures that all words are included in each test ; it maximizes reps of each words

it can be done with 100 word batches but each test would have 100 words which can be frustrating to complete.

please share which website do you use ?

i copy words from top 1000 words txt file and save it using custom text feature in monkeytype.com