13.07.2015 Views

ALGORYTMY I STRUKTURY DANYCH

ALGORYTMY I STRUKTURY DANYCH

ALGORYTMY I STRUKTURY DANYCH

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AiSD wykład 2 – dr hab. inż. A. Obuchowicz, prof. UZ 7/10✬✩Lista jednokierunkowa: operacjeinsert_list1(head,x)if headnullthen next[x]:=headhead:=xx=search_list1(head,k)x:=headwhile xnull & key[x]kdo x:=next[x]return xdelete_list1(head,x)if head=xthen head:=next[head]else y:=headwhile next[y]xdo y:=next[y]next[y]:=next[x]✫✪

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!