Saturday 2 December 2017

Friday 20 October 2017

// C++ program to print DFS traversal from
// a given vertex in a given graph
#include<iostream>
#include<list>
using namespace std;

// Graph class represents a directed graph
// using adjacency list representation
class Graph
{
int V; // No. of vertices

// Pointer to an array containing
// adjacency lists
list<int> *adj;

// A recursive function used by DFS
void DFSUtil(int v, bool visited[]);
public:
Graph(int V); // Constructor

// function to add an edge to graph
void addEdge(int v, int w);

// DFS traversal of the vertices
// reachable from v
void DFS(int v);
};

Graph::Graph(int V)
{
this->V = V;
adj = new list<int>[V];
}

void Graph::addEdge(int v, int w)
{
adj[v].push_back(w); // Add w to v’s list.
}

void Graph::DFSUtil(int v, bool visited[])
{
// Mark the current node as visited and
// print it
visited[v] = true;
cout << v << " ";

// Recur for all the vertices adjacent
// to this vertex
list<int>::iterator i;
for (i = adj[v].begin(); i != adj[v].end(); ++i)
if (!visited[*i])
DFSUtil(*i, visited);
}

// DFS traversal of the vertices reachable from v.
// It uses recursive DFSUtil()
void Graph::DFS(int v)
{
// Mark all the vertices as not visited
bool *visited = new bool[V];
for (int i = 0; i < V; i++)
visited[i] = false;

// Call the recursive helper function
// to print DFS traversal
DFSUtil(v, visited);
}

int main()
{
// Create a graph given in the above diagram
Graph g(4);
g.addEdge(0, 1);
g.addEdge(0, 2);
g.addEdge(1, 2);
g.addEdge(2, 0);
g.addEdge(2, 3);
g.addEdge(3, 3);

cout << "Following is Depth First Traversal"
" (starting from vertex 2) \n";
g.DFS(2);

return 0;
}

Saturday 14 October 2017

Wednesday 7 June 2017

Numerical Computing Notes

Numerical Computing All notes For final papers

Attention All
The course of Numerical for Final Examination is

Question 1: LU factroization
Question 2: sidel
Questiin 3: interpolation
Q 4: Simpson nd trapozidal .. to find exact solution for one eq by both methods
Numerical Computing All notes For final papers

Thanks And Regards
Ahad Bajwa

Saturday 3 June 2017

ANN ALL LEC's

AOA
The below Mentioned hyperlink contains all lectures of ANN

ALL LECTURES OF ANN

Paper will be conducted from all these topics Don't miss Pseudocodes from After Mid Lectures
Source: Dr Syed Muhammad Zubair Rehman Gillani.

Thanks And Regards
Ahad Bajwa

Sunday 28 May 2017

Assignment # 4 Entrepreneurship

Aoa
The.below. mentioned Hyper link contains Assignment # 4

Assignment # 4

Thanks And Regards
M. Ahad J. Bajwa.

Saturday 27 May 2017

SPM ALL NOTES

All Spm Lectures
https://drive.google.com/folderview?id=0Bx3Vz96j5gpDd2hQbmVPX05KcWc

Entrepreneurship all SLIDES


Asalamalaikum
The below mentioned Hyperlink contains all the Slides of Entrepreneurship
A Quiz 'll Be conducted on Monday


Entrepreneurship all Slides

Assignment # 3
Innovative Business Plan

Thanks And Regards

DESIGN and analysis of Algorithms AFTER Mids

Asalamalaikum

A Quiz will be conducted in the approaching class
The below mentioned hyperlink contains all the Lectures After Mids

DESIGN and analysis of Algorithms AFTER Mids

Thanks And Regards





Saturday 6 May 2017

ENTREPRENEURSHIP


AOA

The below mentioned Hyper link contains the Entrepreneurship Lec's after mids

Thanks And Regards



WEEK 5 LEC
Leadership Lec's

ANN

AOA,

          The Above hyperlink contains the attachments comprising of lectures after mid's

ANN lEc]]
ANN LEC 2 AFTER MID

Thanks And Regards

Saturday 15 April 2017

SPM Mid Term Catos

All lecture Notes of SPM Uptil Mid

SPM

Thanks And Regards

Ahad Bajwa

Thursday 13 April 2017

All Syllabus for Mid

Numerical Computing

A.N.N

DAA

Compiler

SPM ( Topics)

Find Details from net

SPM Topics Covered Before Mids.

Topics Covered Before Mids.
1)Waterfall Model.
2)Rapid Application Development Model
3)Prototyping Model
4)Traditional Processes group of P.M
5)Comparison b/w SDLC and Process group of P.M
6)3 Activities of SPM
(i)Project Planning.
(ii)Scope Management.
(iii)Project Estimation
7)Post Mortem Analysis,
8)Cost Estimation and its Techniques.
9)Project Scheduling.
10)Resource Management.
11)Project Risk Management.
12)Project Execution and Monitoring.
13)THEAC-25.
14)London Ambulance Failure.
15)Patriot Missile Failure.

16)Failure in Air Traffic Control System.

These are the topics for the Mid Term Syllabi 

There 'll be 5 Questions in the Mid Term Paper
Prepare Well

Entrepreneurship

All Lecture Notes

Wednesday 12 April 2017

Numerical Computing All notes before mids

The Following Hyperlink contains the Enclosed Syllabi of Numerical Computing

Numerical Computing

Thanks And Regards
Ahad Bajwa

Monday 10 April 2017

SPM Topics Covered Before Mids.

Topics Covered Before Mids.
1)Waterfall Model.
2)Rapid Application Development Model
3)Prototyping Model
4)Traditional Processes group of P.M
5)Comparison b/w SDLC and Process group of P.M
6)3 Activities of SPM
(i)Project Planning.
(ii)Scope Management.
(iii)Project Estimation
7)Post Mortem Analysis,
8)Cost Estimation and its Techniques.
9)Project Scheduling.
10)Resource Management.
11)Project Risk Management.
12)Project Execution and Monitoring.
13)THEAC-25.
14)London Ambulance Failure.
15)Patriot Missile Failure.

16)Failure in Air Traffic Control System.

These are the topics for the Mid Term Syllabi 

There 'll be 5 Questions in the Mid Term Paper
Prepare Well
Best of Luck

Thanks And Regards

Ahad Bajwa


Monday 3 April 2017

MATLAB Code 3rd Apr

fx='x^3 - x -11'
xa=2
xb=3
xc = ( xa + xb ) / 2
x=xa
fxa=eval(fx)
x=xc
fxc=eval(fx)
if fxa * fxc < 0
    xb = xc;
else
    xa = xc;
   
end

xa , xb , xc , fx , fxa


in command window 

<file name>

format long 
<file name>

Saturday 18 March 2017

Numerical Lab Tasks

Quiz 'll be conducted on Monday

Source: SIR M.IQBAL

Numerical Lab Tasks

Thanks And Regards


Monday 13 March 2017

Notices

Assignment # 3 SPM

Difference b/w SDLC and P.M (Project Management)
Length: 4 pages IEEE format

Email the soft copy to ateebkhawaja786@gmail.com

Note: Plagiarism 'ill be checked

Source: Mir Jamal ud Din

Quiz # 1 Numerical Analysis

All commands which sir taught in class 'll be queried and u 'll be asked to Perform

Source: Sir Muhammad Iqbal

Quiz #1 Entrepreneurship

From all lectures.

Source : Ma'am Adeeba

Quiz # 1 Compiler Construction

Source: Sir Khurram Shahzad

Lab task #3

Source: Ma'am Ayesha

(1)ArrAYS.
(2)CLASSES
(3)INHERITANCE.
(4)CONSTRUCTOR/DESTRUCTOR
(5)HYBRID.

THE TASK SHOULD BE PERFORMED IN THE FOLLOWING WAY:

FOR INSTANCE:


>>ARRAY:  .



>>TASK



>>CODE: SCREENSHOT (IT SHOULD BE CROPPED DEPICTING THE CODE)



>>OUTPUT: SCREENSHOT OF THE OUTPUT




Thanks and Regards




Wednesday 8 March 2017

Code for SLP (A.N.N)

% inputs
x = [0 0 1 1; 0 1 0 1];
% outputs
t = [0 1 1 1];
% intializing perceptrons
net = perceptron;
% training perceptrons
net = train(net,x,t);

% view(net)

y = net(x);
% calculating error
e = t-y;
plot (t,e);

The following Hyper link contains the executable code
SLP CODE

Wednesday 1 March 2017

SPM ASSIGNMENT

Attention Everyone
Assignment of SPM is to be Submitted on 3/3/2017

Components

SDLC
Water Fall Model
RAD Model
Prototyping Model

Description Advantages DisAdvantages Condition
5 Pages
No Copy
Plagiarism report 'ill be generated
Individual
Email Your Soft Copy to
Ateebkhawaja786@gmail.com

And Template of IEEE 'll be uploaded on Blogger
Bscsuol.blogspot.com

IEEE TEMPLATE


Thanks And Regards



Saturday 21 January 2017

CCN Course

10 Questions will be Theoretical of 20 marks.
3 Question of 18 Marks 'll be from Mathematical from chp 7 8 and Subnetting.
12 Marks from lab section meant theoretical questions of chp 19 20 21 22

THE PDF FILE IN THE ABOVE ATTACHMENTS ARE SHORT NOTES WHICH ARE IDEAL FOR STUDY

Source: Dr Muhammad Nadeem Sial.

Best Of Luck.

Thanks And Regards

Architecture Course

The Course of Architecture is as Follows:

1) How C.P.U Works
2) R.I.S.C AND C.I.S.C Instruction Sets
3)Access/Time/Latency/Organization/Block/Relax/Refresh/Strategies
4)Memory Hierarchy

5th Question 'ill be M.C.Q's of Sir's Will

Thanks And Regards



Financial Management All Class Notes

Monday 16 January 2017

Automata Pedigree

The Following Hyperlink contains all the Class Notes of Automata
Automata Pedigree

Best of Luck

Thanks And Regards
Ahad Bajwa

Wednesday 11 January 2017

HCI H/w dont write assignment or quiz on title just write ur roll number and name and start it

-Describe in terms of semantic directness a word processing application that:-a)allows users to move text around in a file by marking the beginning and end ofthe section to be moved and then issuing a move command-b) and also uses drag-and-drop editingANSWER IN BOOK:The operations in (a) are semantically indirect,because thegoal of moving a section will have to be translated initially into the goal of issuingcommands to mark the beginning and the end of the section and then a furthercommand to move the marked section.-The operations in (b) are more semantically directin the sense that draggingand dropping does not require the user to have to reconceptualize the task into anew set of goals, but simply to learn how to move text directly through selecting thetext to be moved and then holding the mouse button down, to drag it to the desired

Friday 6 January 2017

HCI QUIZ AND ASSIGNMENT 4 DEADLINE 9/1/2017

ASSIGNMENT 04
QUIZ 03

Assignment # 4 
SOLUTION
ANS 1:

There are many usability principles that can be brought to bear on an examination of
scrolling principles. For example:

Observability The whole reason why scrolling is used is because there is too much
information to present all at once. Providing a means of viewing document contents
without changing the contents increases the observability of the system. Scrollbars
also increase observability because they help to indicate the wider context of the
information which is currently visible, typically by showing where the window of
information fits within the whole document. However, observability does not
address the particular design options put forth here.


Predictability The value of a scrolling mechanism lies in the user being able to know
where a particular scrolling action will lead in the document. The use of arrows on
the scrollbar is to help the user predict the effect of the scrolling operation. If an
arrow points up, the question is whether that indicates the direction the window is
being moved (the first case) or the direction the actual text would have to move (the
second case). The empirical question here is: to what object do users associate the
arrow – the text or the text window? The arrow of the scrollbar is more closely
connected to the boundary of a text window, so the more usual interpretation
would be to have it indicate the direction of the window movement.

Synthesizability You might think that it does not matter which object the user associates
to the arrow. He will just have to learn the mapping and live with it. In this
case, how easy is it to learn the mapping, that is can the user synthesize the meaning
of the scrolling actions from changes made at the display? Usually, the movement
of a box within the scrollbar itself will indicate the result of a scrolling operation.

Familiarity/guessability It would be an interesting experiment to see whether
there was a difference in the performance of new users for the different scrolling
mechanisms. This might be the subject of a more extended exercise.
Task conformance There are some implementation limitations for these scrolling
mechanisms (see below). In light of these limitations, does the particular scrolling
task prefer one over the other? In considering this principle, we need to know what
kinds of scrolling activity will be necessary. Is the document a long text that will be
browsed from end to end, or is it possibly a map or a picture which is only slightly
larger than the actual screen so scrolling will only be done in small increments?

Some implementation considerations:
n What scroll mechanisms does a toolkit provide? Is it easy to access the two options
discussed above within the same toolkit?
n In the case of the second scrolling option, are there enough keys on the mouse to
allow this operation without interfering with other important mouse operations,
such as arbitrarily moving the insertion point or selecting a portion of text or selecting
a graphical item?
n In the second option, the user places the mouse on a specific location within the
window, and gestures to dictate the movement of the underlying document.

ANS 2:
The user control guideline states that, 'The user, not the computer, initiates and controls all actions.' In the case of dialogue boxes, this guideline is clearly contradicted. A dialogue box can be used to indicate when an error occurs in the system. Once this error has been detected and presented to the user in the dialogue box, the only action that the system allows the user is to acknowledge the error and dismiss the dialogue box. The system preempts the user dialogue, with good reason. The preemptive nature of the dialogue box is to ensure that the user actually notices that there was an error. Presumably, the only errors that will be produced in such an intrusive manner are ones which the user must know about before proceeding, so the preemption is warranted. But sometimes dialogue boxes are not used to indicate errors and they still prevent the user from performing some actions that they might otherwise wish to perform. The dialogue box might be asking the user to fill in some information to specify parameters for a command. If the user does not know what to provide, then they are stuck. A lot of the time, the user can find out the information by browsing through some other part of the system, but in order to do that they must exit the dialogue box (and forfeit any of the settings that they might have already entered), find out the missing information and begin again. This kind of preemption is not desirable. It is probably this kind of preemption the user control guideline is intended to prevent, but it doesn't always get applied. 
It is possible to use notification-based code to produce pre-emptive interface dialog such as a modal dialog
box, but much more difficult than with an event-loop-based system. Similarly, it is possible to write
event-loop-based code which is not pre-emptive, but again it is difficult to do so. If you are not careful,
systems built using notification-based code will have lots of non-modal dialog boxes and vice versa.
Each programming paradigm has a grain, a tendency to push you towards certain kinds of interface.
If you know that the interface you require fits more closely to one paradigm or another then it is worth
selecting the programming paradigm to make your life easier! Often, however, you do not have a
choice. In this case you have to be very careful to decide what kind of interface dialog you want before
you (or someone else) start coding. Where the desired interface fits the grain of the paradigm you
don’t have to worry. Where the desired behavior runs against the grain you must be careful, both in
coding and testing as these are the areas where things will go wrong.
Of course, if you don’t explicitly decide what behavior you want or you specify it unclearly, then it
is likely that the resulting system will simply run with the grain, whether or not that makes a good
interface.
ANS 3:

Effective applications are both consistent within themselves and consistent with one
another.
One of the advantages of programming with toolkits is that
they can enforce consistency in both input form and output form by providing
similar behavior to a collection of widgets. For example, every button interaction
object, within the same application program or between different ones, by default
could have a behavior like the one described in Figure 8.8. All that is required is that
the developers for the different applications use the same toolkit. This consistency
of behavior for interaction objects is referred to as the look and feel of the toolkit.
Style guides, which were described in the discussion on guidelines in Chapter 7, give
additional hints to a programmer on how to preserve the look and feel of a given
toolkit beyond that which is enforced by the default definition of the interaction
objects.
Two features of interaction objects and toolkits make them amenable to an objectoriented
approach to programming. First, they depend on being able to define a class
of interaction objects which can then be invoked (or instantiated) many times within
one application with only minor modifications to each instance. Secondly, building
complex interaction objects is made easier by building up their definition based on
existing simpler interaction objects. These notions of instantiation and inheritance
are cornerstones of object-oriented programming. Classes are defined as templates
for interaction objects. When an interaction object is created, it is declared as an
instance of some predefined class. So, in the example quit.c program, frame is
declared as an instance of the class FRAME (line 17), panel is declared as an instance
of the class PANEL (line 22) and the button (no name) is declared as an instance of
the class PANEL_BUTTON (line 23). Typically, a class template will provide default
values for various attributes. Some of those attributes can be altered in any one
instance; they are sometimes distinguished as instance attributes.
In defining the classes of interaction objects themselves, new classes can be built
which inherit features of one or other classes. In the simplest case, there is a strict
class hierarchy in which each class inherits features of only one other class, its parent
class. This simple form of inheritance is called single inheritance and is exhibited in
the XView toolkit standard hierarchy for the window class in Figure 8.9. A more
complicated class hierarchy would permit defining new classes which inherit from
more than one parent class – called multiple inheritance.




QUIZ 3 SOLUTION

QUESTION 4

QUESTION 2 SOLUTION
QUESTION 3 

 QUESTION 1 SOLUTION


HCI LAB TASK

HCI Lab Task


Download the Lab Task from above mentioned HYPER LINK

Till Lab 14 Copies must by completed Till Thursday 

Wednesday 4 January 2017

LAB TASK 9 AND 10





Submit your Names in Group of 3 in SMS at +923336773758
For H.C.I Semester Project Front Page Based HTML