Monday, 28 January 2013

Re: ||| VuHelp4U ||| Today Online Quran & Online Hadith Sunday, January 27, 2013, Rabi ul awal 14, 1434 A.H.

Aslam o alikum bahi 
 Moaaz bahi ap na koi file prepare ke ha  cs501 . cs614 ya sta301 ke to plz send me 

On Sun, Jan 27, 2013 at 8:56 PM, www.virtualians.pk <irfankhan0044@gmail.com> wrote:



Thanks and Regards


Virtualians Social Networ 

--
--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US
 
 
 

--
--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US
 
 
 

||| VuHelp4U ||| CS502 QUIZ NO.3 DATED JAN, 28, 2013

CS502 - Fundamentals of Algorithms

Quiz No.3 Dated 28-01-2013

 

 

In in-place sorting algorithm is one that uses arrays for storage :
An additional array

No additional array (Right Answer)

Both of above may be true according to algorithm

More than 3 arrays of one dimension.

 

The running time of quick sort depends heavily on the selection of

No of inputs

Arrangement of elements in array

Size o elements

Pivot element (Right Answer)

 

In stable sorting algorithm

One array is used

In which duplicating elements are not handled.

More then one arrays are required. 

Duplicating elements remain in same relative position after sorting. (Right Answer)

 

Which sorting algorithn is faster :

O(n^2)

O(nlogn)

O(n+k) (Right Answer)

O(n^3)

 

In Quick sort algorithm,constants hidden in T(n lg n) are

Large

Medium

Not known

Small (Right Answer)

 

Quick sort is based on divide and conquer paradigm; we divide the problem on base of pivot element and:

There is explicit combine process as well to conquer the solutin. (Right Answer)

No work is needed to combine the sub-arrays, the array is already sorted

Merging the subarrays

None of above.

 

 

 

There is relationship between number of back edges and number of cycles in DFS

Select correct option:

 Both are equal.

 Cycles are half of back edges.

 Cycles are one fourth of back edges.

  There is no relationship between back edges and number of cycle (Right Answer)

 

You have an adjacency list for G, what is the time complexity to compute Graph

transpose G^T ?

Select correct option:

 (V+E)  (Right Answer)

 V.E

 V

 E

 

 

Question # 3 of 10 ( Start time: 06:54:27 PM )  Total Marks: 1

You have an adjacency list for G, what is the time complexity to compute Graph

transpose G^T.?

?(V + E)  Right Answer)

?(V E)

?(V)

?(V^2)

 

What is the time complexity to extract a vertex from the priority queue in Prim's

algorithm?

Select correct option:

log (V) (Right Answer)

V.V

E.E

log (E)

 

Dijkstra's algorithm :

Select correct option:

Has greedy approach to find all shortest paths

Has both greedy and Dynamic approach to find all shortest paths

Has greedy approach to compute single source shortest paths to all other vertices  (Right Answer)

Has both greedy and dynamic approach to compute single source shortest paths to all other vertices.

 

 

 

What algorithm technique is used in the implementation of Kruskal solution for the

MST?

Greedy Technique (Right Answer)

Divide-and-Conquer Technique

Dynamic Programming Technique

The algorithm combines more than one of the above techniques

 

What is the time complexity to extract a vertex from the priority queue in Prim's

algorithm?

Select correct option:

O (log E)

? (V)

? (V+E)

O (log V) (Right Answer)

 

Which is true statement in the following.

Kruskal algorithm is multiple source technique for finding MST.

Kruskal's algorithm is used to find minimum spanning tree of a graph, time complexity of this algorithm is O(EV)

Both of above

Kruskal's algorithm (choose best non-cycle edge) is better than Prim's  (choose best Tree edge) when the graph has relatively few edges ) (Right Answer)

 

The relationship between number of back edges and number of cycles in DFS is,

Both are equal

Back edges are half of cycles

Back edges are one quarter of cycles

There is no relationship between no. of edges and cycles (Right Answer)

 

Kruskal's algorithm (choose best non-cycle edge) is better than Prim's (choose best tree

edge) when the graph has relatively few edges.

True  (Right Answer)

False

 

 

What is the time complexity to extract a vertex from the priority queue in Prim's

algorithm?

Select correct option:

log (V)

V.V

E.E

log (E)

 

Suppose that a graph G = (V,E) is implemented using adjacency lists. What is the complexity of a breadth-first traversal of G?

Select correct option:

O(|V |^2)

O(|V | |E|) (Right Answer)

O(|V |^2|E|)

O(|V | + |E|)



What is generally true of Adjacency List and Adjacency Matrix representations of graphs?

Select correct option:

Lists require less space than matrices but take longer to find the weight of an edge (v1,v2)

Lists require less space than matrices and they are faster to find the weight of an edge (v1, v2) Right Answer)

Lists require more space than matrices and they take longer to find the weight of an edge (v1, v2)

Lists require more space than matrices but are faster to find the weight of an edge (v1, v2)



What general property of the list indicates that the graph has an isolated vertex?

Select correct option:

There is Null pointer at the end of list.

The Isolated vertex is not handled in list. (not Sure)

Only one value is entered in the list.

There is at least one null list.


A dense undirected graph is:

Select correct option:

A graph in which E = O(V^2) (Right Answer)

A graph in which E = O(V)

A graph in which E = O(log V)

All items above may be used to characterize a dense undirected graph

 


In digraph G=(V,E) ;G has cycle if and only if

 

Select correct option:

The DFS forest has forward edge.

The DFS forest has back edge (Right Answer)

The DFS forest has both back and forward edge

BFS forest has forward edge

 

Back edge is:

Select correct option:

(u, v) where v is an ancestor of u in the tree. (Right Answer)

(u,v) where u is an ancesstor of v in the tree.

(u, v) where v is an predcessor of u in the tree.

None of above

 

Using ASCII standard the string "abacdaacacwe" will be encoded with __________ bits

Select correct option:

64

128 (Right Answer)

96

120


Cross edge is :

Select correct option:

(u, v) where u and v are not ancestor of one another

(u, v) where u is ancesstor of v and v is not descendent of u.

(u, v) where u and v are not ancestor or descendent of one another (Right Answer)

(u, v) where u and v are either ancestor or descendent of one another. 



Which statement is true?

Select correct option:

If a dynamic-programming problem satisfies the optimal-substructure property, then a locally optimal solution is globally optimal.

If a greedy choice property satisfies the optimal-substructure property, then a locally optimal solution is globally optimal.

Both of above Right Answer)

None of above

10  If you find yourself in maze the better traversel approach will bE


A dense undirected graph is:

Select correct option:

A graph in which E = O(V^2) (Right Answer)

A graph in which E = O(V)

A graph in which E = O(log V)

All items above may be used to characterize a dense undirected graph


Which is true statement.

Select correct option:

Breadth first search is shortest path algorithm that works on un-weighted graphs (Right Answer)

Depth first search is shortest path algorithm that works on un-weighted graphs.

Both of above are true.

None of above are true.


Forward edge is:

Select correct option:

(u, v) where u is a proper descendent of v in the tree.

(u, v) where v is a proper descendent of u in the tree. (Right Answer)

(u, v) where v is a proper ancesstor of u in the tree.

(u, v) where u is a proper ancesstor of v in the tree.


Back edge is:

Select correct option:

(u, v) where v is an ancestor of u in the tree. (Right Answer)

(u,v) where u is an ancesstor of v in the tree.

(u, v) where v is an predcessor of u in the tree.

None of above

 

 

Suppose that a graph G = (V,E) is implemented using adjacency lists. What is the complexity of a breadth-first traversal of G?

Select correct option:

O(|V |^2)

O(|V | |E|) (Right Answer)

O(|V |^2|E|)

O(|V | + |E|)

 

In digraph G=(V,E) ;G has cycle if and only if

Select correct option:

The DFS forest has forward edge.

The DFS forest has back edge (Right Answer)

The DFS forest has both back and forward edge

BFS forest has forward edge

 

What general property of the list indicates that the graph has an isolated vertex?

Select correct option:

There is Null pointer at the end of list.

The Isolated vertex is not handled in list. (not Sure)

Only one value is entered in the list.

There is at least one null list.

 

If you find yourself in maze the better traversel approach will be :

BFS

BFS and DFS both are valid (Right Answer)

Level order

DFS

 

Cross edge is :

(u, v) where u and v are not ancestor of one another

(u, v) where u is ancesstor of v and v is not  descendent of u.

(u, v) where u and v are not ancestor or descendent of one another (Right Answer)

 (u, v) where u and v are either ancestor or descendent of one another.

 

What algorithm technique is used in the implementation of Kruskal solution for the MST?

Greedy Technique   (Right Answer)

Divide-and-Conquer Technique

Dynamic Programming Technique 

The algorithm combines more than one of the above techniques

 

Kruskal's algorithm (choose best non-cycle edge) is better than Prim's (choose best tree edge) when the graph has relatively few

True (Right Answer)

False

 

You have an adjacency list for G, what is the time complexity to compute Graph transpose G^T.?

?(V + E)  Right Answer)

? (V E)

? (V)

? (V^2)

 

A digraph is strongly connected under what condition?

A digraph is strongly connected if for every pair of vertices u, v e V, u can reach v .

A digraph is strongly connected if for every pair of vertices u, v e V, u can reach v and vice versa. (Right Answer)

A digraph is strongly connected if for at least one pair of vertex u, v e V,  u can reach v and vice versa.

A digraph is strongly connected if  at least  one third pair  of vertices u, v e V, u can reach v and vice versa.

 

The relationship between number of back edges and number of cycles in DFS is,

Both are equal

Back edges are half of cycles

Back edges are one quarter of cycles

There is no relationship between no. of edges and cycles (Right Answer)

 

What algorithm technique is used in the implementation of Kruskal solution for the MST?

Greedy Technique  (Right Answer)

Divide-and-Conquer Technique

Dynamic Programming Technique 

The algorithm combines more than one of the above techniques


--
Zindagi mein 2 Logo ka buhat khayal rahkoooo
Ist woh jiss ney tumhari jeet ke Liye buhat kuch hara hoo
(Father)
2nd woh jiss ko tum ney har dukh me pukaara hoo (Mother)
Regards,
Umair Saulat Mc100403250

--
--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US
 
 
 

Sunday, 27 January 2013

||| VuHelp4U ||| Today Online Quran & Online Hadith Monday, January 28, 2013, Rabi ul awal 15, 1434 A.H.

  

Thanks and Regards


Virtualians Social Network

--
--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US
 
 
 

||| VuHelp4U ||| Today Online Quran & Online Hadith Sunday, January 27, 2013, Rabi ul awal 14, 1434 A.H.



Thanks and Regards


Virtualians Social Network

--
--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US
 
 
 

Saturday, 26 January 2013

||| VuHelp4U ||| All VU Students Attention :Make Your Date Sheet Now For Fall 2012 Final Term Examinations

Published On:  Saturday, January 26, 2013

As announced earlier, the web interface for making your date sheet is being placed on the following link:
http://datesheet.vu.edu.pk/

Note: You MUST make your date sheet on or before: Sunday, February 3, 2013. Seats will be available on a 'first come first served' basis. All mentioned timings are according to PST(Pakistan Standard Time).
 
INSTRUCTIONS 
1.Logon using your VULMS ID and Password 
(In case of any password related problem contact at password@vu.edu.pk) 
2.Choose Your Exam City in which you want to appear for Exam (optional) 
3.Choose your Exam Center out of the centers available to you
(Once selected, you can not change your Exam Center) 
4.Select available exam date and start time of your own choice for each of your courses, then click "Confirm" button to confirm your selection. 
5.Repeat the Step-4 for all your remaining courses one by one. 
6.Finally click the button at the bottom of the page to get Examination Password and print your Examination Slip which you MUST keep with you for entry in Examination Center on each of the Exam Dates.

 


Thanks and Regards


Virtualians Social Network

--
--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US
 
 
 

||| VuHelp4U ||| make ur datesheet

--
--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US
 
 
 

Friday, 25 January 2013

||| VuHelp4U ||| عقیدہ رسالت ۔۔۔ نبی صلی اللہ علیہ وسلم بشر ہیں یا نور؟

نبی صلی اللہ علیہ وسلم بشر ہیں یا نور؟

کیا یہ بات صحیح ہے کہ نبی صلی اللہ علیہ وسلم بشر نہیں تھے، بلکہ آپ نور سے تخلیق کیے گئے تھے، جیسا کہ بعض لوگوں کا خیال ہے؟ 

 (ثاقب علی کاظمی)

:سوال

نبی صلی اللہ علیہ وسلم کو بشر کے بجاے نور منوانے کے لیے جتنی احادیث پیش کی جاتی ہیں، وہ سب کی سب انتہائی ضعیف ہیں۔ صحیح احادیث میں اس طرح کی کوئی بات نہیں ہے۔


البتہ، اس بحث سے متعلق قرآن مجید میں درج ذیل آیت موجود ہے جو ہمارے خیال میں، اس ضمن میں فیصلہ کن ہے۔ ارشاد باری ہے:

قُلْ اِنَّمَآ اَنَا بَشَرٌ مِّثْلُکُمْ. (کہف 18: 110) '' تم کہو میں تو بس تمھاری مثل ایک بشر ہوں۔''

اس کا مطلب یہ ہے کہ محمد رسول اللہ صلی اللہ علیہ وسلم جنھیں اللہ تعالیٰ نے اپنی رسالت کے لیے چنا ہے، وہ اپنی نوع میں دوسرے انسانوں کی مثل ایک بشر ہیں، نہ کہ جن یا فرشتہ وغیرہ۔ اگر آپ فرشتہ ہوتے تو آپ کا مادۂ تخلیق نور ہوتا، اگر آپ جن ہوتے تو مادۂ تخلیق آگ ہوتا، لیکن آپ چونکہ بشر ہیں تو دوسرے انسانوں کی طرح آپ کا مادۂ تخلیق بھی مٹی ہے۔یہ وہ حقیقت ہے جسے قرآن نے بیان کیا ہے۔


نبی صلی اللہ علیہ وسلم کی بشریت پر درج ذیل آیات بھی دلالت کرتی ہیں۔ارشاد باری ہے:

وَلَقَدْ صَرَّفْنَا لِلنَّاسِ فِیْ هٰذَا الْقُرْاٰنِ مِنْ کُلِّ مَثَلٍ فَاَبٰۤی اَکْثَرُ النَّاسِ اِلاَّ کُفُوْرًا. وَقَالُوْا لَنْ نُّؤْمِنَ لَکَ حَتّٰی تَفْجُرَ لَنَا مِنَ الْاَرْضِ يَنْبُوْعًا. اَوْ تَکُوْنَ لَکَ جَنَّةٌ مِّنْ نَّخِيْلٍ وَّعِنَبٍ فَتُفَجِّرَ الْاَنْهٰرَ خِلٰلَهَا تَفْجِيْرًا. اَوْ تُسْقِطَ السَّمَآءَ کَمَا زَعَمْتَ عَلَيْنَا کِسَفًا اَوْ تَاْتِیَ بِالله وَالْمَلٰۤئِکَةِ قَبِيْلاً. اَوْ يَکُوْنَ لَکَ بَيْتٌ مِّنْ زُخْرُفٍ اَوْ تَرْقٰی فِی السَّمَآءِ وَلَنْ نُّؤْمِنَ لِرُقِيِّکَ حَتّٰی تُنَزِّلَ عَلَيْنَا کِتٰبًا نَّقْرَؤُه، قُلْ سُبْحَانَ رَبِّیْ هَلْ کُنْتُ اِلاَّ بَشَرًا رَّسُوْلاً. وَمَا مَنَعَ النَّاسَ اَنْ يُّؤْمِنُوْۤا اِذْ جَآءَهُمُ الْهُدٰۤی اِلاَّ ۤاَنْ قَالُوْۤا اَبَعَثَ الله بَشَرًا رَّسُوْلاً. قُلْ لَّوْ کَانَ فِی الْاَرْضِ مَلٰۤئِکَةٌ يَّمْشُوْنَ مُطْمَئِنِّيْنَ لَنَزَّلْنَا عَلَيْهِمْ مِّنَ السَّمَآءِ مَلَکًا رَّسُوْلاً. (اسراء 17: 89۔95)
''اور ہم نے لوگوں کے لیے اس قرآن میں طرح طرح سے ہر قسم کی حکمت کی باتیں بیان کی ہیں، لیکن اکثر لوگ انکار ہی پر اڑے ہوئے ہیں۔اور کہتے ہیں کہ ہم تو تمھاری بات ماننے کے نہیں، جب تک تم ہمارے لیے زمین سے کوئی چشمہ نہ جاری کر دو یا تمھارے پاس کھجوروں اور انگوروں کا کوئی باغ نہ ہو جائے پھر تم اس کے بیچ بیچ میں نہریں نہ دوڑا دو یا تم ہم پر آسمان سے ٹکڑے نہ گرا دو،جیسا کہ تم دعویٰ کرتے ہویا اللہ اور فرشتوں کو سامنے نہ لا کھڑا کرو یا تمھارے پاس سونے کا کوئی گھر نہ ہو جائے یا تم آسمان پر نہ چڑھ جاؤ اور ہم تمھارے چڑھنے کو بھی ماننے کے نہیں،جب تک تم وہاں سے ہم پر کوئی کتاب نہ اتارو جسے ہم پڑھیں کہہ دو کہ میرا رب پاک ہے، میں تو بس ایک بشر ہوں، اللہ کا رسول۔ اور ان لوگوں کو ایمان لانے سے ، جبکہ ان کے پاس ہدایت آ گئی ، نہیں مانع ہوئی، مگر یہ چیز کہ انھوں نے کہا: کیا اللہ نے ایک بشر ہی کو رسول بنا کر بھیجا ہے؟ کہہ دو: اگر زمین میں فرشتے اطمینان سے چلتے پھرتے ہوتے تو ہم ان پر آسمان سے کسی فرشتے ہی کو رسول بنا کر اتارتے۔''

ان آیات میں نبی صلی اللہ علیہ وسلم کو بہت اصرار کے ساتھ اور بڑے صریح طور پر ایک بشر رسول قرار دیا گیا ہے۔
بعض لوگوں نے درج ذیل آیت سے یہ مفہوم لینے کی کوشش کی ہے کہ نبی صلی اللہ علیہ وسلم نور تھے۔ ارشاد باری ہے:

قَدْ جَآءَکُمْ مِّنَ الله نُوْرٌ وَّ کِتٰبٌ مُّبِيْنٌ. (مائدہ 5: 15)
'' آیا ہے تمھارے پاس اللہ کی جانب سے ایک نور اور روشن کتاب۔''

اس آیت میں نور سے مراد نور ہدایت، یعنی قرآن مجید ہے ، اگلے الفاظ میں اسی کو روشن کتاب قرار دیا گیا ہے۔ چنانچہ اس آیت کا مطلب یہ ہے کہ تمھارے پاس اللہ کی جانب سے ایک نور ہدایت، یعنی روشن کتاب آ چکی ہے۔


یہاں نور سے مراد کتاب مبین ہی ہے، لیکن بعض مفسرین نے نور سے محمد صلی اللہ علیہ وسلم کو مراد لیا ہے۔ بالفرض اگر ہم ان مفسرین کی راے مان بھی لیں تو درج بالا آیات جن میں آپ کی بشریت کا ذکر ہوا ہے، ان کی روشنی میں اس آیت میں موجود نور کے لفظ کو لازماً مجازی معنوں ہی میں لینا ہو گا۔مثلاً، آپ کی ذات نورانیت کی حامل ہے یا آپ نور ہدایت ہیں وغیرہ، لیکن اگر ہم اس آیت میں نور کے لفظ کو اس کے حقیقی معنوں میں لیں اور یہ کہیں کہ آپ بشر نہیں، بلکہ نور ہیں تو آیات قرآنی میں صریح تضاد لازم آئے گا جو کہ نا ممکن ہے۔


قرآن مجید میں نبی صلی اللہ علیہ وسلم کے نور ہدایت ہونے کے پہلو کو کئی طریقوں سے بیان کیا گیا ہے، مثلاً آپ کو 'سِرَاجًا مُّنِیْرًا' (روشن چراغ) کہا گیا ہے، یہاں بھی ظاہر ہے کہ ان الفاظ کا مجازی مفہوم (ہدایت کے روشن چراغ) ہی پیش نظر ہے، ورنہ تو یہ ماننا پڑے گا کہ نبی صلی اللہ علیہ وسلم نعوذ باللہ انسان نہیں، بلکہ چراغ تھے۔


--


اس نے انسان کو قطرہ نجس سے پیدا کیا پھر وہ کھلّم کھلّا  جھگڑا کرنے والا بن گیا ۔
 سورہ النحل

"Tum acha karo or zamana tmko bura samjhe ye tmhare haq mein behtar hy,
bajaye is k tum bura karo or zamana Tumko acha samjhe"



--
--
To post to this group, send email to vuhelp_pk@googlegroups.com
To unsubscribe from this group, send email to vuhelp_pk+unsubscribe@googlegroups.com
 
 
Group Rules Vuhelp4u
Sharing of Video songs links, movies links, dramas links are not allowed in study group. Only Islamic and general information Video links allowed.
SPAM, Advertisement, and Adult messages are NOT allowed and that member will be behaved strictly.
http://groups.google.com/group/vuhelp_pk?hl=en_US