Friday, April 8, 2011

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


vlan design, can I have some opinions or advice please? Thanks!

Posted: 07 Apr 2011 12:39 PM PDT

Hey there guys, i needed to design a vlan for part of my university coursework. I was hoping that some of you pros here can have a look at it and give me your opinion, it was very difficult to research and design.
I was wondering if the native vlan which is the main network with around 1000 hosts on the is the management vlan also? A thing I was not sure about either was security, there is just too much to think about, so if anyone can give me advice on anything that would be great!

Here is the diagram I made:
http://0902221.studentweb.abertay.ac...AN%20PLAN4.png

Thank you!

Prolog System Predicates- Cut and Fail- a quiz

Posted: 07 Apr 2011 07:57 AM PDT

Hello friends. Today I was having my Prolog exams. There I had a very interesting question that I would like to share with you.

Ques: If there are N one argument facts for the predicate named 'test1' and M one argument facts for the predicate named 'test2'.
This would be like:
Code:

test1(1).      test2(1).
test1(2).      test2(2).
test1(3).      test2(3).
|                  |
test1(n).      test2(m).

Now find the maximum number of possible answers all the values of z for the query 'z' as:
Quote:

?-z.
where the rule z in various cases is:
Code:

1. z:- test1(X), !, test2(X).

2. z:- test1(X), test2(X), !.

3. z:- !, test1(X), test2(X).

4. z:- test1(X), fail, test2(X).

5. z:- test1(X), !, test2(Y).

6. z:- test1(X), test2(Y), !.

7. z:- !, test1(X), test2(Y).

8. z:- test1(X), test2(Y), fail.

Feel free to ask any question on this topic.:)

No comments:

Post a Comment