Motivation behind SOSL - intersection - union - complement - in - - PowerPoint PPT Presentation

motivation behind sosl intersection union complement in
SMART_READER_LITE
LIVE PREVIEW

Motivation behind SOSL - intersection - union - complement - in - - PowerPoint PPT Presentation

Motivation behind SOSL - intersection - union - complement - in - cardinality Special operators Simplification of set Make it easy to for set-related theory operations manipulate sets functions - addition - subtraction -


slide-1
SLIDE 1
slide-2
SLIDE 2

Motivation behind SOSL Simplification of set theory operations Make it easy to manipulate sets Special operators for set-related functions

  • intersection
  • union
  • complement
  • in
  • cardinality
  • addition
  • subtraction
  • multiplication
  • division
  • modulus
slide-3
SLIDE 3
slide-4
SLIDE 4

Order of Operations

slide-5
SLIDE 5

int add(int a, int b) { int c; c = a + b; return c; } int main() { int d; d = add(1, 2); print(d); return 0; }

slide-6
SLIDE 6

void create_set(int elmType) void *adds(void *set_ptr, void *value) void destroy(void *set_ptr) **All other set related functions are tied to operators.

slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9
slide-10
SLIDE 10
  • Variable Declaration

○ Nested set OK :{:{int}:}:

  • SetLit assignment
  • Set Operators

○ :u - Union : returns void * ○ :i - has : returns int (1,0)