This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Char (intToDigit) | |
import Network.URI | |
import Network.HTTP | |
--import Text.JSON | |
import Maybe | |
import Text.Regex.Posix | |
import Control.Monad | |
import Control.Parallel.Strategies | |
import Control.Parallel | |
--import System.IO.UTF8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class Form1 : Form | |
{ | |
static BaumNode root; | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private int getMaxHeight(BaumNode node) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace PGN | |
{ | |
class BaumNode | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module BTree ( | |
BTree, | |
search, | |
insert, | |
delete, | |
emptyTree, | |
testTree, | |
insertALot, | |
insertALot2, | |
insertALot3, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- http://www.haskell.org/pipermail/haskell-cafe/2005-November/012009.html only def | |
data BTree = BTree [Int] [BTree] deriving (Show, Eq) | |
t = 2 -- t ist die minimale anzahl an kindknoten | |
if' :: Bool -> a -> a -> a | |
if' True x _ = x | |
if' False _ y = y | |
isLeaf (BTree x y) = length y == 0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Baum | |
{ | |
public Baum() | |
{ | |
child0 = null; | |
child1 = null; | |
value = 0; | |
} | |
public Baum child0{set; get;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Blatt<T> : Blattbaum | |
{ | |
T val { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{--polylist a@([q,p]:xs) = pl' a p [] | |
where | |
p' ([q,p]:xs) e l | |
pl' [] _ l = l | |
| p == e = pl' xs (e-1) (l++[q]) | |
| otherwise = pl' ([q,e]:xs) (e-1) (l++[0])--} | |
type Polynom = [(Int,Int)] | |
polyplus :: Polynom -> Polynom -> Polynom | |
--polyplus [] p = p | |
---polypuls p [] = p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Stapel ( | |
Stapel, | |
empty, | |
isEmpty, | |
push, | |
top, | |
pop | |
) where | |
data Stapel a = E | S a (Stapel a) deriving(Eq,Show) | |
empty = E |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Set ( | |
Set, | |
empty, | |
insert, | |
delete, | |
--isEmpty, | |
--isElement, | |
--card, | |
--intersection, | |
--union, |