Question 1: (6 marks)
Suppose that we have a node p as follows:
Write the necessary statements that do the following: a) Insert a node q of data = 4 after p. b) Exchange the data in p and q c) Insert a node r of data= 5 between p and q.
Question 2: (12 marks)
Use a stack to write a method reverseString that takes a string as an argument, then it should return a string, which is the reverse of the input string.
Question 3:(12 marks) Write the Java code of the method difference2D that takes two 2-dimentional array (matrix) A and B and returns one 2-dimentional array C that contains the difference between the two matrices. For example, if A and B are as follows:
A B C
Question 4: (10 marks)
For each of the following expressions, find the dominant term(s) having the sharpest increase in n and give the time complexity using Big-O notation. Expression Dominant term O(..) 2n(300+0.5n3 ) 2n5+ nlogn5 100n/(2n+1) 100 log( logn) + 5logn 900n4 +2n4 logn2
_________________
لتحميل ملف حل الواجب .docx من خلال التسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الملف خدمات مجانية – حلول واجبات الجامعة العربية المفتوحة - حل واجب tma tma01
لجميع تخصصات الجامعة ولجميع فروع الجامعة
حلول واجبات – مشاريع تخرج – ملخصات هامة
http://solution.123.stwhatsapp::00966542495275whatsapp::00966542495275
whatsapp::00966542495275
smsm.hamdy66@yahoo.comحلول مضمونة وغير مكررة وغير متشابهة لجميع واجبات الجامعة
متوفرمدرسين ومدرسات لجميع المواد والتخصصات
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
الكويت-البحرين-عمان-الأردن-السعودية-لبنان-مصر
الرياض-الدمام-جدة-الأحساء-المدينة المنورة-جده-حائل-بيروت-المنامة-القاهرة-مسقط
pg ,h[fhj hg[hlum hguvfdm hgltj,pm - pg,g ,h[fhj hg[hlum hguvfdmhgltj,pm
http://solution.123.st