Jump to content

pvs specifications of order crossover

Featured Replies

hello..

I am trying to write order crossover specifications in pvs . i have done with cut, head and tail functions specifications now i need a delete function which delete a sequence to another sequence

here is a fuction that del

 

 

 

 

del_element(a:T, p):RECURSIVE finseq[T]=

 

(# length:= p`length,

seq := LAMBDA (i:below[p`length]):(if p`seq(i) =a THEN empty_seq[T]

ELSE del_element(a,p) ENDIF)#)

MEASURE p`length

 

 

 

 

delete all occurrences of element a. can any body guide me what changes it acquires to delete n element recursively with correct syntax.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.