Posts

Practical 6 (AI)

Image
PRACTICAL NO :- 6 Aim : - Write  a  program  to  implement  Depth First Search. Program Code: domains path=symbol* predicates search(symbol,symbol,path) edge(symbol,symbol) member(symbol,path) clauses search(X,X,T). search(X,Y,T):- edge(X,Z), not(member(Z,T)), search(Z,Y,[Z|T]). member(X,[X|_]):-!. member(X,[_|Y]):- member(X,Y). edge(g,h). edge(g,d). edge(e,d). edge(h,f). edge(e,f). edge(a,e). edge(a,b). edge(b,f). edge(b,c). edge(f,c). Output:

Practical 1 (AI)

Image
PRACTICAL NO :- 1 Aim : Write a Prolog Program that list four address in a label form, each address should list a name, one-line address, city, state, and Pin Code. Program Code: predicates             reference(symbol,symbol,symbol,symbol,symbol)             goal             write("Please Enter Your Name : "),             readln(Name),             reference(Name,Address,City,State,PinCode),             write(">Name:",Name),nl,             write(">Address:",Address),nl,             write(">City:",City),nl, ...

Mobile Blogger

Just installed Blogger on my IPhone :) 
Image
advance computing technology exam without book

RMI program !!

import java.rmi.*; import java.rmi.registry.*; import java.rmi.server.*; interface Calculator extends Remote{     int add(int a, int b) throws RemoteException; } class CalculatorImpl extends UnicastRemoteObject implements Calculator{     CalculatorImpl() throws RemoteException{     }     public int add(int a, int b){         System.out.println("Adding "+a+" and "+b+" .......");         return a+b;     } }  class ServerApp{     public static void main(String[] args) throws Exception{         CalculatorImpl ci=new CalculatorImpl();         Registry r=LocateRegistry.createRegistry(1099);         r.bind("abcd", ci);     } } class ClientApp{     public static void main(String[] args) throws Exception{     ...
new on blog world !!