Lesson 3.3 Learning Algorithms in Coding with AI Tools like ChatGPT

Lesson 3.3 Learning Algorithms in Coding with AI Tools like ChatGPT

Activity 3.3.3: Performance Comparison of Sorting Algorithms

Activity 3.3.3: Performance Comparison of Sorting Algorithms

Learning Objective:

By completing this activity, students will enhance their understanding of sorting algorithms and algorithm performance by implementing and testing Bubble Sort and Merge Sort with the guidance of ChatGPT.

Instructions:

  • Implement Bubble Sort and Merge Sort in Python with the support of ChatGPT.
  • Test both sorting algorithms on randomly generated lists to ensure they work correctly.
  • Use ChatGPT to analyze and compare the performance of Bubble Sort and Merge Sort.
  • Discuss the time complexity and efficiency of both algorithms based on your results.
  • After completing your comparisons, assist your peers if they need help.
  • Post a screenshot of your code, results, and performance analysis in the discussion forum.

⏩ Go to CollaborationBook to complete this activity

您已完成此程序教学的0%
0%