Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prob-teaching-notebooks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
prob-teaching-notebooks
Commits
e27af931
Commit
e27af931
authored
2 years ago
by
Michael Leuschel
Browse files
Options
Downloads
Patches
Plain Diff
update notebooks
Signed-off-by:
Michael Leuschel
<
leuschel@uni-duesseldorf.de
>
parent
4b876e81
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
info4/kapitel-9/Ackermann.ipynb
+9
-9
9 additions, 9 deletions
info4/kapitel-9/Ackermann.ipynb
info4/kapitel-9/PrimitiveRekursion.ipynb
+321
-903
321 additions, 903 deletions
info4/kapitel-9/PrimitiveRekursion.ipynb
with
330 additions
and
912 deletions
info4/kapitel-9/Ackermann.ipynb
+
9
−
9
View file @
e27af931
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"cells": [
"cells": [
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"id": "
05d7c16f
",
"id": "
4f85588b
",
"metadata": {},
"metadata": {},
"source": [
"source": [
"## Die Ackermann Funktion"
"## Die Ackermann Funktion"
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1,
"execution_count": 1,
"id": "
dc177e49
",
"id": "
fba4a5ee
",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 2,
"execution_count": 2,
"id": "4a
df4ed2
",
"id": "
6
4a
68f66
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 3,
"execution_count": 3,
"id": "
c26e7fa4
",
"id": "
0ff57d9f
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 4,
"execution_count": 4,
"id": "
d682c1fc
",
"id": "
190a83b9
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 5,
"execution_count": 5,
"id": "
0e1603db
",
"id": "
3617d235
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 6,
"execution_count": 6,
"id": "
41d483da
",
"id": "
5c189808
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 7,
"execution_count": 7,
"id": "
19e3c25f
",
"id": "
ed5076a9
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": null,
"id": "
95f45975
",
"id": "
0097f444
",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": []
"source": []
...
...
%% Cell type:markdown id:
05d7c16f
tags:
%% Cell type:markdown id:
4f85588b
tags:
## Die Ackermann Funktion
## Die Ackermann Funktion
%% Cell type:code id:
dc177e49
tags:
%% Cell type:code id:
fba4a5ee
tags:
```
prolog
```
prolog
ack
(
0
,
N
,
R
)
:-
!,
R
is
N
+
1
.
ack
(
0
,
N
,
R
)
:-
!,
R
is
N
+
1
.
ack
(
M1
,
0
,
R
)
:-
!,
M
is
M1
-
1
,
ack
(
M
,
1
,
R
).
ack
(
M1
,
0
,
R
)
:-
!,
M
is
M1
-
1
,
ack
(
M
,
1
,
R
).
ack
(
M1
,
N1
,
R
)
:-
M
is
M1
-
1
,
N
is
N1
-
1
,
ack
(
M1
,
N
,
R1
),
ack
(
M
,
R1
,
R
).
ack
(
M1
,
N1
,
R
)
:-
M
is
M1
-
1
,
N
is
N1
-
1
,
ack
(
M1
,
N
,
R1
),
ack
(
M
,
R1
,
R
).
```
```
%% Cell type:code id:4a
df4ed2
tags:
%% Cell type:code id:
6
4a
68f66
tags:
```
prolog
```
prolog
?-
ack
(
1
,
1
,
R
).
?-
ack
(
1
,
1
,
R
).
```
```
%% Output
%% Output
%% Cell type:code id:
c26e7fa4
tags:
%% Cell type:code id:
0ff57d9f
tags:
```
prolog
```
prolog
?-
ack
(
1
,
2
,
R
).
?-
ack
(
1
,
2
,
R
).
```
```
%% Output
%% Output
%% Cell type:code id:
d682c1fc
tags:
%% Cell type:code id:
190a83b9
tags:
```
prolog
```
prolog
?-
ack
(
3
,
3
,
R
).
?-
ack
(
3
,
3
,
R
).
```
```
%% Output
%% Output
%% Cell type:code id:
0e1603db
tags:
%% Cell type:code id:
3617d235
tags:
```
prolog
```
prolog
?-
ack
(
3
,
5
,
R
).
?-
ack
(
3
,
5
,
R
).
```
```
%% Output
%% Output
%% Cell type:code id:
41d483da
tags:
%% Cell type:code id:
5c189808
tags:
```
prolog
```
prolog
?-
ack
(
3
,
6
,
R
).
?-
ack
(
3
,
6
,
R
).
```
```
%% Output
%% Output
%% Cell type:code id:
19e3c25f
tags:
%% Cell type:code id:
ed5076a9
tags:
```
prolog
```
prolog
?-
ack
(
4
,
0
,
R
).
?-
ack
(
4
,
0
,
R
).
```
```
%% Output
%% Output
%% Cell type:code id:
95f45975
tags:
%% Cell type:code id:
0097f444
tags:
```
prolog
```
prolog
```
```
...
...
This diff is collapsed.
Click to expand it.
info4/kapitel-9/PrimitiveRekursion.ipynb
+
321
−
903
View file @
e27af931
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