Skip to content

Conversation

@eng-abdelrahman-sharaf
Copy link

@eng-abdelrahman-sharaf eng-abdelrahman-sharaf commented Apr 28, 2024

Fix efficiency comparison in Chapter 04 (Algorithm 2 is fastest)

Measured execution time of all algorithms using C++ code (n values from the table).
Corrected the previous assumption: Algorithm 2 is demonstrably the fastest, not Algorithm 3.
Updated Chapter 04 in book.pdf to reflect this finding.

The code : https://github.com/eng-abdelrahman-sharaf/shared_repo/blob/main/cphb-page-45.cpp

The Output : https://github.com/eng-abdelrahman-sharaf/shared_repo/blob/main/output_cphb_page_45.txt

- Measured execution time of all algorithms using C++ code (n values from the table).
- Corrected the previous assumption: Algorithm 2 is demonstrably the fastest, not Algorithm 3.
- Updated Chapter 04 in book.pdf to reflect this finding.

The code : https://github.com/eng-abdelrahman-sharaf/shared_repo/blob/main/cphb-page-45.cpp

The Output : https://github.com/eng-abdelrahman-sharaf/shared_repo/blob/main/output_cphb_page_45.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant