السلام عليكم ورحمة الله وبركاته
كيف الحال شباب ان شاء الله تمام
لو سمحتوا ممكن مساعدة
انا عندي تمرين في هياكل البيانات بلغة السي ولقد كتبية بالانجليزية للتوضيح يا ليت اللي يقدر يساعدني ما يتأخر
لأن التسليم قريبا جدا .
وألف شكر لكم.............
HW#1 :
Read a 2 polynomials of degree n , on the form
a 0 + a 1x +a 2x 2 +…….+a nx n
and store it in a 2 linked lists and perform the following tasks :
1- add a term to the pol. 1 or 2
2- Delete a term from the pol. 1 or 2
3- Evaluate the pol. 1 or 2 by entering x value
4- Display the resulted pol. From adding pol1 to pol2
5- Display pol1 or pol2
Hw#2:
Create an index for a text file using BST that works as follows:
- on program start up the words in file are loaded from disk and stored in
BST where each word is stored with its location(s) in the file
- the user can display the words in an ascending order along with its
No. of occurrences.
- the user can refresh the BST once the file contents are changed.
i.e. ( can add or delete words )
- the user can search for a word and display the line No. and the
line contains the word.
تحيات.............
