Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating chapter 4 and rebuilding book.pdf #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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