Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture materials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
generic software skills
lecture materials
Commits
778d8d5a
Commit
778d8d5a
authored
1 year ago
by
Dominik Zobel
Committed by
Tobias Koelling
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add content to second hands-on
parent
796c88f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!24
complexity lecture
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lectures/complexity/slides.qmd
+3
-3
3 additions, 3 deletions
lectures/complexity/slides.qmd
with
3 additions
and
3 deletions
lectures/complexity/slides.qmd
+
3
−
3
View file @
778d8d5a
...
@@ -514,9 +514,9 @@ None
...
@@ -514,9 +514,9 @@ None
## Hands-on Session! {background-color=var(--dark-bg-color) .leftalign}
## Hands-on Session! {background-color=var(--dark-bg-color) .leftalign}
1. Create an array `x_values` with at least 4000 equally distributed elements ranging from -2.0 to 2.0
1. Create an array `x_values` with at least 4000 equally distributed elements ranging from -2.0 to 2.0
2. Starting from the left end (-2.0),
use
a binary search to find the highest value $x$ in the array `x_values`,
2. Starting from the left end (-2.0),
implement
a binary search to find the highest value $x$ in the array `x_values`,
for which $f(x) > 0$
for which $f(x) > 0$
. How many steps and checks are necessary to find $x$?
3. How many steps would be necessary if `x_values` contained 4100 values? And for 3900?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment