:: Computer Application :: 

Predicate Calculus

Kruskal Method ] Prim's Method ] Dijkastra’s algorithm ] Selection ] [ Predicate Calculus ]

Main Chapters

Home
Introduction to Software
Data Structures
System Engineering
Database Management System
Discrete Mathemarics
Numerical & Statistical Computing
Software Engineering
Operation Research
Acounting & Finance
Computer Architecture
Operating Systems
Intelligent Systems
Relational Database
Obejct Oiented Systems

 

Predicate Calculus

Question 1:  Write regular expressions for

·        A Set of strings including { d, abd, cd, abcd}

·        A Set of Strings of x's, y's and z's

For example {xxx, xxy, xxz……….zzz}

Ans :  

The regular expression for Set of strings including {d, abd, cd, abcd}can be written in two ways.

i)                     d | abd | cd | abcd

ii)                    (c | ab | abc )d | d

 

The required  regular expression for Set of  strings of x's, y's and z's can also be written in two ways.

iii)                  [xyz][xyz][xyz] or [x-z][x-z][x-z]

iv)                  (x|y|z) (x|y|z) (x|y|z)

 

Links for Web Developers Web Publishers

 

Links from Google

 

 
 

Up ] Kruskal Method ] Prim's Method ] Dijkastra’s algorithm ] Selection ] [ Predicate Calculus ]

This is archive of an MCA course completed by BK Pandey. This is published here for the benefit of all visitors.

- Disclaimer -

These articles may treated as study material and veracity of the materials may be checked by the users. Publisher of this material is not responsible for any mistake or error committed in the programming codes in the respective sections.