#[Sorting] How to write any sorting algorithm without google or AI help ?

1 messages ยท Page 1 of 1 (latest)

golden tuskBOT
#

<@&987246964494204979> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

ke to explain how to write a sorting algorithm without using any external help such as Google or AI.

  1. Understand the problem: First, you need to understand the problem of sorting. Sorting involves arranging a collection of elements in a specific order, such as ascending or descending.

  2. Choose a sorting algorithm: There are various sorting algorithms available, such as Bubble Sort, Insertion Sort, Selection Sort, Merge Sort, Quick Sort, etc. Choose one that you are familiar with or want to practice.

  3. Pseudocode: Write down the steps of the chosen algorithm in pseudocode. Pseudocode is a high-level description of the algorithm that uses simple language and does not require any specific programming syntax.

  4. Implement the algorithm: Start implementing the algorithm based on the pseudocode you wrote. You can use any programming language you are comfortable with. Break down the steps into smaller sub-tasks and implement them one by one.

#
  1. Test your implementation: After writing the code, test it with different input data sets to ensure it produces correct results for both small and large inputs. Verify that the output is sorted according to your desired order.

  2. Analyze time complexity: Once your implementation is working correctly, analyze its time complexity to understand its efficiency in terms of input size. This step will help you evaluate how well your algorithm performs for large data sets.

  3. Optimize if necessary: If you find that your initial implementation is not efficient enough for larger inputs or if there are known optimizations for your chosen algorithm, consider optimizing it further.

  4. Repeat steps 4-7 for other algorithms (optional): If you want to practice more algorithms, repeat steps 4-7 for other sorting algorithms as well.

Remember that understanding and implementing sorting algorithms without external help requires a good grasp of computer science fundamentals and previous knowledge/experience with these algorithms. It may take some time and effort initially but will improve with practice.

undone haven
#

I don't understand, how can you them if you don't research them?

worldly moat
timid sundial
#

so you want a text based summary about what the algorithm is about and then code it yourself?

worldly moat
#

actually i want to make it clear and solid in my brain

#

so whenever a newbie asks me about it i give them correct answer without need to check on internet

#

what do you think of this ?