cours/Graphreg.md
2025-05-15 14:21:59 +02:00

48 lines
800 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
aliases:
up:
tags:
---
# Routines
## ORDREK
Code de l'article :
```
procedure ORDREK(x,y,v)
if y>nk∧deg[x] <k∧ny<kdeg[x] then
return
end if
if x≤nk∧deg[x]=k then
for i=y+1 to n do
if nx1 <kdeg[i] then
return
end if
end for
end if
while x<n∧deg[x]=k do
x=x+1
end while
if v≤y then
v=y+1
end if
if x=v then
return
end if
if KATEST()=0 then
return
end if
if x=n∧deg[x]=k then
OUTPUT()
end if
y=x
while y<n do
y=y+1
if deg[y] <k then
INSERT(x,y)
ORDREK(x,y,v)
DELETE(x,y)
end if
end while
return
end procedure
```