SlideShare a Scribd company logo
):(
‫ﻛﺎرﺷﻨﺎﺳﻲ‬
‫درس‬ ‫ﻋﻨــﻮان‬
‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬
‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬
,,
:::
:
:
: :
), (,),(
),(),()(,
,,
.
int func(int n){
if (n<=2)
return 1;
else
return func(n‐2) + func(n‐2);
( )O n2( log )O n n
( )
n
O 2
2
( )n
O 2
1-
....
for(i=1; i<=n; i++)
for(j=1; j<=2*i; j++)
for(k=1; k<=3; k++)
cout<< i*j*k;
( )O n3( )O n( log )O n n( )O n2
2-
....
d
( )
n
T n T d
  
= +    
2
2
( ) ( )T n O n∈( ) ( log )T n O n n∈( ) ( )T n O n∈ 2( ) (log )T n O n∈
3-
....
A[1..6][1..6].A[4][5]
A[2][3]
4-
....
‫داراي‬ ‫ﺗﻬﻲ‬ ‫ﻏﻴﺮ‬ ‫دودوﻳﻲ‬ ‫درﺧﺖ‬ ‫ﻳﻚ‬ ‫اﮔﺮ‬20‫دارد؟‬ ‫ﺑﺮگ‬ ‫ﭼﻨﺪ‬ ‫ﺑﺎﺷﺪ‬ ‫ﻓﺮزﻧﺪي‬ ‫دو‬ ‫ﮔﺮه‬ 5-
....
:
/‐/+abc*+dc7d
ab+c/dc+7*‐d/abc/+dc7*+d/‐ab+c/dc7*+‐d/ab+cd‐/c7*+d/
6-
....
‫ﺻﻔﺤﻪ‬1‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 1010/1010612
):(
‫ﻛﺎرﺷﻨﺎﺳﻲ‬
‫درس‬ ‫ﻋﻨــﻮان‬
‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬
‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬
,,
:::
:
:
: :
), (,),(
),(),()(,
,,
S1S2S3.
poppush(i,j)pop(i):
poppush(i,j):SiSj.
pop(i):Si.
poppush
7-
....
{x+(y‐[a+b]*c‐[(d+e)])}/(j‐(k‐[l‐n]))
8-
....
Q1Q2:
Q1: 2, 7, 1, 5, 4, 6, 3
Q2: 2, 4, 7, 5, 3, 6, 1
Q3
i=0;
while(!empty(Q1) && !empty(Q2)){
x= delete(Q1);
y= delete(Q2);
if(x==y)
add(Q3, i);
}
1, 4, 62, 5, 67, 1, 41, 5, 3
9-
....
‫ﺻﻔﺤﻪ‬2‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 1010/1010612
):(
‫ﻛﺎرﺷﻨﺎﺳﻲ‬
‫درس‬ ‫ﻋﻨــﻮان‬
‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬
‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬
,,
:::
:
:
: :
), (,),(
),(),()(,
,,
.
10-
..
..
R=3F=7 11-
....
void func(node *list){
if(list)
if(list‐>next == null){
free(list);
list= null;
}
else
func(list‐>next);
}
..
..
12-
..
..
)(
int func(node *list){
if(list == null)
return 0;
else if(list‐>next != null){
return list‐>info + func(list‐>next) + func(list‐>next‐>next);
else
return list‐>info;
13-
....
‫ﺻﻔﺤﻪ‬3‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
):(
‫ﻛﺎرﺷﻨﺎﺳﻲ‬
‫درس‬ ‫ﻋﻨــﻮان‬
‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬
‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬
,,
:::
:
:
: :
), (,),(
),(),()(,
,,
‫اﻋﺪاد‬ ‫اﮔﺮ‬5‫و‬4‫و‬3‫و‬2‫و‬1‫ﭘﺬﻳﺮ‬ ‫اﻣﻜﺎن‬ ‫ﭘﺸﺘﻪ‬ ‫از‬ ‫اﻋﺪاد‬ ‫ﺧﺮوﺟﻲ‬ ‫ﺗﺮﺗﻴﺐ‬ ‫ﻛﺪام‬ ‫ﺷﻮﻧﺪ‬ ‫ﭘﺸﺘﻪ‬ ‫وارد‬ ‫ﺗﺮﺗﻴﺐ‬ ‫ﺑﻪ‬‫ﻧﻴﺴﺖ؟‬
4‫و‬5‫و‬3‫و‬2‫و‬11‫و‬3‫و‬2‫و‬5‫و‬45‫و‬1‫و‬2‫و‬4‫و‬31‫و‬5‫و‬2‫و‬4‫و‬3
14-
....
int func(node *root){
if(root‐>left != null && root‐>right != null)
return 1+func(root‐>leŌ) + func(root‐>right);
else
return 0
}
..
..
15-
..
..
.
push.
pop.
.
16-
.
.
.
.
‫ﺻﻔﺤﻪ‬4‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
):(
‫ﻛﺎرﺷﻨﺎﺳﻲ‬
‫درس‬ ‫ﻋﻨــﻮان‬
‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬
‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬
,,
:::
:
:
: :
), (,),(
),(),()(,
,,
17-
.
.
.
.
..
DCBAFEIHGIHFDCBGEAFCDBIHAEGDCBFIHGEA
18-
....
heapstackBSTqueue
19-
....
‫ﺻﻔﺤﻪ‬5‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
):(
‫ﻛﺎرﺷﻨﺎﺳﻲ‬
‫درس‬ ‫ﻋﻨــﻮان‬
‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬
‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬
,,
:::
:
:
: :
), (,),(
),(),()(,
,,
A
ABCEDFGHACBDFGEHABCDFEGHABCFEGDH
20-
....
21-
....
‫ﺻﺤﻴﺢ‬ ‫زﻳﺮ‬ ‫ﻫﺎي‬ ‫ﮔﺰاره‬ ‫از‬ ‫ﻳﻚ‬ ‫ﻛﺪام‬‫ﻧﻴﺴﺖ؟‬
‫ﻧﺒﺎﺷﺪ‬ ‫ﻳﻜﺘﺎ‬ ‫اﺳﺖ‬ ‫ﻣﻤﻜﻦ‬ ‫ﮔﺮاف‬ ‫ﻳﻚ‬ ‫ﺑﺮاي‬ ‫ﺑﻬﻴﻨﻪ‬ ‫ﭘﻮﺷﺎي‬ ‫درﺧﺖ‬.
‫ﻛﻨﻨﺪ‬ ‫ﻣﻲ‬ ‫اﻳﺠﺎد‬ ‫درﺧﺖ‬ ‫ﻳﻚ‬ ‫ﻫﻤﻮاره‬ ‫اﺳﺘﻔﺎده‬ ‫ﻣﻮرد‬ ‫ﻳﺎﻟﻬﺎي‬ ‫ﮔﺮاف‬ ‫ﻋﻤﻘﻲ‬ ‫ﺟﺴﺘﺠﻮي‬ ‫اﻟﮕﻮرﻳﺘﻢ‬ ‫در‬.
ij ‫ﺳﻄﺮ‬ ‫دراﻳﻪ‬‫ﺳﺘﻮن‬ ‫و‬‫ﻣﺎﺗﺮﻳﺲ‬
k
Ak ‫ﺣﺪاﻛﺜﺮ‬ ‫ﻃﻮل‬ ‫ﺑﻪ‬ ‫ﻫﺎي‬ ‫ﻣﺴﻴﺮ‬ ‫ﺗﻌﺪاد‬‫دﻫﻨﺪ‬ ‫ﻣﻲ‬ ‫ﻧﺸﺎن‬ ‫را‬.
‫اﺳﺖ‬ ‫زوج‬ ‫ﻫﻤﻴﺸﻪ‬ ‫ﻓﺮد‬ ‫درﺟﻪ‬ ‫ﺑﺎ‬ ‫رﺋﻮس‬ ‫ﺗﻌﺪاد‬ ‫ﺟﻬﺖ‬ ‫ﺑﺪون‬ ‫ﮔﺮاف‬ ‫ﻳﻚ‬ ‫در‬.
22-
.
.
.
.
‫ﺻﻔﺤﻪ‬6‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
):(
‫ﻛﺎرﺷﻨﺎﺳﻲ‬
‫درس‬ ‫ﻋﻨــﻮان‬
‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬
‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬
,,
:::
:
:
: :
), (,),(
),(),()(,
,,
23-
.
.
.
.
n 1n 1n 1n 1
nnn 1n 1
24-
..
..
‫ﭘﺎﻳﺪار‬ ‫زﻳﺮ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬ ‫روﺷﻬﺎي‬ ‫از‬ ‫ﻳﻚ‬ ‫ﻛﺪام‬‫ﻧﻴﺴﺖ؟‬
‫ﺣﺒﺎﺑﻲ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬‫ادﻏﺎﻣﻲ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬‫درﺟﻲ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬‫ﻫﺮﻣﻲ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬
25-
....
An.
int func(int A[], int n){
if(n==1)
return A[0];
else
return (A[n‐1] + func(A, n‐1));
}
1-,
Q1Q2Q1Q2
.
2-,
‫ﺻﻔﺤﻪ‬7‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
):(
‫ﻛﺎرﺷﻨﺎﺳﻲ‬
‫درس‬ ‫ﻋﻨــﻮان‬
‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬
‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬
,,
:::
:
:
: :
), (,),(
),(),()(,
,,
. 3-,
max heapheap).
(.
4-,
.
.
5-,
‫ﺻﻔﺤﻪ‬8‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
1‫ج‬
2‫د‬
3‫الف‬
4‫ب‬
5‫ج‬
6‫الف‬
7‫ج‬
8‫د‬
9‫الف‬
10‫ب‬
11‫د‬
12‫د‬
13‫د‬
14‫ب‬
15‫ب‬
16‫ج‬
17‫ج‬
18‫د‬
19‫ج‬
20‫الف‬
21‫ج‬
22‫ج‬
23‫ب‬
24‫ب‬
25‫د‬
٩٠_٩١ ‫دوم‬ ‫ترم‬ ‫داده‬ ‫ساختمان‬

More Related Content

What's hot

Tuyen tap cac bai toan hinh hoc giai tich trong khong gian (luyen thi dai hoc)
Tuyen tap cac bai toan hinh hoc giai tich trong khong gian (luyen thi dai hoc)Tuyen tap cac bai toan hinh hoc giai tich trong khong gian (luyen thi dai hoc)
Tuyen tap cac bai toan hinh hoc giai tich trong khong gian (luyen thi dai hoc)Huynh ICT
 
Technique
TechniqueTechnique
Technique
Thomas Fugier
 
Boissons 1
Boissons 1Boissons 1
Boissons 1
Thomas Fugier
 
GustavsonSchoolOfBusiness
GustavsonSchoolOfBusinessGustavsonSchoolOfBusiness
GustavsonSchoolOfBusinessNicolas Baar
 
Stefan Project Man Certificate
Stefan Project Man CertificateStefan Project Man Certificate
Stefan Project Man CertificateStefan Viljoen
 
Physics unit4-lesson
Physics unit4-lessonPhysics unit4-lesson
Physics unit4-lessonmatrice107
 
Certificat de réussite - Formation Sylviculture
Certificat de réussite - Formation SylvicultureCertificat de réussite - Formation Sylviculture
Certificat de réussite - Formation Sylviculture
Mylène Ladoux-Chamblain
 
E0b881e0b8b2e0b8a3e0b983e0b88ae0b989e0b8a0e0b8b2e0b8a9e0b8b2
E0b881e0b8b2e0b8a3e0b983e0b88ae0b989e0b8a0e0b8b2e0b8a9e0b8b2E0b881e0b8b2e0b8a3e0b983e0b88ae0b989e0b8a0e0b8b2e0b8a9e0b8b2
E0b881e0b8b2e0b8a3e0b983e0b88ae0b989e0b8a0e0b8b2e0b8a9e0b8b2
NuchanatJaroensree
 
Sakhtoman dadeha 91-92 - nimsal 1 -F1notes.ir
Sakhtoman dadeha   91-92 - nimsal 1 -F1notes.irSakhtoman dadeha   91-92 - nimsal 1 -F1notes.ir
Sakhtoman dadeha 91-92 - nimsal 1 -F1notes.ir
ehsangh100
 
Inventor Certificate
Inventor CertificateInventor Certificate
Inventor CertificateKyle Mew
 

What's hot (14)

Tuyen tap cac bai toan hinh hoc giai tich trong khong gian (luyen thi dai hoc)
Tuyen tap cac bai toan hinh hoc giai tich trong khong gian (luyen thi dai hoc)Tuyen tap cac bai toan hinh hoc giai tich trong khong gian (luyen thi dai hoc)
Tuyen tap cac bai toan hinh hoc giai tich trong khong gian (luyen thi dai hoc)
 
Technique
TechniqueTechnique
Technique
 
Boissons 1
Boissons 1Boissons 1
Boissons 1
 
GustavsonSchoolOfBusiness
GustavsonSchoolOfBusinessGustavsonSchoolOfBusiness
GustavsonSchoolOfBusiness
 
Stefan Project Man Certificate
Stefan Project Man CertificateStefan Project Man Certificate
Stefan Project Man Certificate
 
Physics unit4-lesson
Physics unit4-lessonPhysics unit4-lesson
Physics unit4-lesson
 
Certificat de réussite - Formation Sylviculture
Certificat de réussite - Formation SylvicultureCertificat de réussite - Formation Sylviculture
Certificat de réussite - Formation Sylviculture
 
E0b881e0b8b2e0b8a3e0b983e0b88ae0b989e0b8a0e0b8b2e0b8a9e0b8b2
E0b881e0b8b2e0b8a3e0b983e0b88ae0b989e0b8a0e0b8b2e0b8a9e0b8b2E0b881e0b8b2e0b8a3e0b983e0b88ae0b989e0b8a0e0b8b2e0b8a9e0b8b2
E0b881e0b8b2e0b8a3e0b983e0b88ae0b989e0b8a0e0b8b2e0b8a9e0b8b2
 
Sakhtoman dadeha 91-92 - nimsal 1 -F1notes.ir
Sakhtoman dadeha   91-92 - nimsal 1 -F1notes.irSakhtoman dadeha   91-92 - nimsal 1 -F1notes.ir
Sakhtoman dadeha 91-92 - nimsal 1 -F1notes.ir
 
EMAUD
EMAUDEMAUD
EMAUD
 
Chuong12
Chuong12Chuong12
Chuong12
 
BLS
BLSBLS
BLS
 
Daniel snake
Daniel snakeDaniel snake
Daniel snake
 
Inventor Certificate
Inventor CertificateInventor Certificate
Inventor Certificate
 

Viewers also liked

Competitic Dématérialisation des marchés publics - numerique en entreprise
Competitic Dématérialisation des marchés publics - numerique en entrepriseCompetitic Dématérialisation des marchés publics - numerique en entreprise
Competitic Dématérialisation des marchés publics - numerique en entrepriseCOMPETITIC
 
Of Sherwood Industries - Think Tank deck
Of Sherwood Industries - Think Tank deckOf Sherwood Industries - Think Tank deck
Of Sherwood Industries - Think Tank deck
ofsherwood
 
Erasmus plus-programme-guide 2016-en
Erasmus plus-programme-guide 2016-enErasmus plus-programme-guide 2016-en
Erasmus plus-programme-guide 2016-en
Mario Verissimo
 
Maria barrera actividad 3 -ecae y saber pro
Maria barrera actividad 3 -ecae y saber proMaria barrera actividad 3 -ecae y saber pro
Maria barrera actividad 3 -ecae y saber pro
mariasagrario
 
ประเพณีแซนโฎนตา
ประเพณีแซนโฎนตาประเพณีแซนโฎนตา
ประเพณีแซนโฎนตา
sumaleeair
 
Manual corporativo meem
Manual corporativo meemManual corporativo meem
Manual corporativo meem
Pontificia Universidad Javeriana Cali
 
Guide for strategic planning of international cooperation
Guide for strategic planning of international cooperationGuide for strategic planning of international cooperation
Guide for strategic planning of international cooperation
Mario Verissimo
 
Verdades bíblicas i parte
Verdades bíblicas   i parteVerdades bíblicas   i parte
Verdades bíblicas i parteredencaodasalmas
 
Gini coefficient and gdp
Gini coefficient and gdp  Gini coefficient and gdp
Gini coefficient and gdp
Tashi Angmo
 
1. introducción al dsm v
1. introducción al dsm v1. introducción al dsm v
1. introducción al dsm v
Sandra Carolina Fagua García
 

Viewers also liked (12)

Competitic Dématérialisation des marchés publics - numerique en entreprise
Competitic Dématérialisation des marchés publics - numerique en entrepriseCompetitic Dématérialisation des marchés publics - numerique en entreprise
Competitic Dématérialisation des marchés publics - numerique en entreprise
 
JASMINA'S RESUME
JASMINA'S RESUMEJASMINA'S RESUME
JASMINA'S RESUME
 
Of Sherwood Industries - Think Tank deck
Of Sherwood Industries - Think Tank deckOf Sherwood Industries - Think Tank deck
Of Sherwood Industries - Think Tank deck
 
Sammupaari arvutamin1
Sammupaari arvutamin1Sammupaari arvutamin1
Sammupaari arvutamin1
 
Erasmus plus-programme-guide 2016-en
Erasmus plus-programme-guide 2016-enErasmus plus-programme-guide 2016-en
Erasmus plus-programme-guide 2016-en
 
Maria barrera actividad 3 -ecae y saber pro
Maria barrera actividad 3 -ecae y saber proMaria barrera actividad 3 -ecae y saber pro
Maria barrera actividad 3 -ecae y saber pro
 
ประเพณีแซนโฎนตา
ประเพณีแซนโฎนตาประเพณีแซนโฎนตา
ประเพณีแซนโฎนตา
 
Manual corporativo meem
Manual corporativo meemManual corporativo meem
Manual corporativo meem
 
Guide for strategic planning of international cooperation
Guide for strategic planning of international cooperationGuide for strategic planning of international cooperation
Guide for strategic planning of international cooperation
 
Verdades bíblicas i parte
Verdades bíblicas   i parteVerdades bíblicas   i parte
Verdades bíblicas i parte
 
Gini coefficient and gdp
Gini coefficient and gdp  Gini coefficient and gdp
Gini coefficient and gdp
 
1. introducción al dsm v
1. introducción al dsm v1. introducción al dsm v
1. introducción al dsm v
 

More from ehsangh100

Exam data structure yazd 88 1-f1notes.ir
Exam data structure yazd 88 1-f1notes.irExam data structure yazd 88 1-f1notes.ir
Exam data structure yazd 88 1-f1notes.ir
ehsangh100
 
Exam data structure yazd f1notes.ir
Exam data structure yazd f1notes.irExam data structure yazd f1notes.ir
Exam data structure yazd f1notes.ir
ehsangh100
 
Exam data structure ashkezar f1notes.ir
Exam data structure ashkezar f1notes.irExam data structure ashkezar f1notes.ir
Exam data structure ashkezar f1notes.ir
ehsangh100
 
Sparsmatrix drdehghan-f1notes.ir
Sparsmatrix drdehghan-f1notes.irSparsmatrix drdehghan-f1notes.ir
Sparsmatrix drdehghan-f1notes.ir
ehsangh100
 
Sparsmatrix drdehghan-f1notes.ir
Sparsmatrix drdehghan-f1notes.irSparsmatrix drdehghan-f1notes.ir
Sparsmatrix drdehghan-f1notes.ir
ehsangh100
 
binry-tree-f1notes.ir
binry-tree-f1notes.irbinry-tree-f1notes.ir
binry-tree-f1notes.ir
ehsangh100
 
tree-pymayesh-f1notes.ir
tree-pymayesh-f1notes.irtree-pymayesh-f1notes.ir
tree-pymayesh-f1notes.ir
ehsangh100
 
tree-base-f1notes.ir
tree-base-f1notes.irtree-base-f1notes.ir
tree-base-f1notes.ir
ehsangh100
 
Chand jomlei
Chand jomleiChand jomlei
Chand jomlei
ehsangh100
 
Genral list-f1notes.ir
Genral list-f1notes.irGenral list-f1notes.ir
Genral list-f1notes.ir
ehsangh100
 
Stack&quee linklist-f1notes.ir
Stack&quee linklist-f1notes.irStack&quee linklist-f1notes.ir
Stack&quee linklist-f1notes.ir
ehsangh100
 
Union f1notes.ir
Union f1notes.irUnion f1notes.ir
Union f1notes.ir
ehsangh100
 
2 list--f1notes.ir
2 list--f1notes.ir2 list--f1notes.ir
2 list--f1notes.ir
ehsangh100
 
Sakhtoman dadeha 91-92 - nimsal 2 -F1notes.ir
Sakhtoman dadeha   91-92 - nimsal 2 -F1notes.irSakhtoman dadeha   91-92 - nimsal 2 -F1notes.ir
Sakhtoman dadeha 91-92 - nimsal 2 -F1notes.ir
ehsangh100
 
پشته و کاربرد ها
پشته و کاربرد ها پشته و کاربرد ها
پشته و کاربرد ها ehsangh100
 

More from ehsangh100 (15)

Exam data structure yazd 88 1-f1notes.ir
Exam data structure yazd 88 1-f1notes.irExam data structure yazd 88 1-f1notes.ir
Exam data structure yazd 88 1-f1notes.ir
 
Exam data structure yazd f1notes.ir
Exam data structure yazd f1notes.irExam data structure yazd f1notes.ir
Exam data structure yazd f1notes.ir
 
Exam data structure ashkezar f1notes.ir
Exam data structure ashkezar f1notes.irExam data structure ashkezar f1notes.ir
Exam data structure ashkezar f1notes.ir
 
Sparsmatrix drdehghan-f1notes.ir
Sparsmatrix drdehghan-f1notes.irSparsmatrix drdehghan-f1notes.ir
Sparsmatrix drdehghan-f1notes.ir
 
Sparsmatrix drdehghan-f1notes.ir
Sparsmatrix drdehghan-f1notes.irSparsmatrix drdehghan-f1notes.ir
Sparsmatrix drdehghan-f1notes.ir
 
binry-tree-f1notes.ir
binry-tree-f1notes.irbinry-tree-f1notes.ir
binry-tree-f1notes.ir
 
tree-pymayesh-f1notes.ir
tree-pymayesh-f1notes.irtree-pymayesh-f1notes.ir
tree-pymayesh-f1notes.ir
 
tree-base-f1notes.ir
tree-base-f1notes.irtree-base-f1notes.ir
tree-base-f1notes.ir
 
Chand jomlei
Chand jomleiChand jomlei
Chand jomlei
 
Genral list-f1notes.ir
Genral list-f1notes.irGenral list-f1notes.ir
Genral list-f1notes.ir
 
Stack&quee linklist-f1notes.ir
Stack&quee linklist-f1notes.irStack&quee linklist-f1notes.ir
Stack&quee linklist-f1notes.ir
 
Union f1notes.ir
Union f1notes.irUnion f1notes.ir
Union f1notes.ir
 
2 list--f1notes.ir
2 list--f1notes.ir2 list--f1notes.ir
2 list--f1notes.ir
 
Sakhtoman dadeha 91-92 - nimsal 2 -F1notes.ir
Sakhtoman dadeha   91-92 - nimsal 2 -F1notes.irSakhtoman dadeha   91-92 - nimsal 2 -F1notes.ir
Sakhtoman dadeha 91-92 - nimsal 2 -F1notes.ir
 
پشته و کاربرد ها
پشته و کاربرد ها پشته و کاربرد ها
پشته و کاربرد ها
 

Sakhtoman dadeha 90-91 - nimsal 2 -F1notes.ir

  • 1. ):( ‫ﻛﺎرﺷﻨﺎﺳﻲ‬ ‫درس‬ ‫ﻋﻨــﻮان‬ ‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬ ‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬ ,, ::: : : : : ), (,),( ),(),()(, ,, . int func(int n){ if (n<=2) return 1; else return func(n‐2) + func(n‐2); ( )O n2( log )O n n ( ) n O 2 2 ( )n O 2 1- .... for(i=1; i<=n; i++) for(j=1; j<=2*i; j++) for(k=1; k<=3; k++) cout<< i*j*k; ( )O n3( )O n( log )O n n( )O n2 2- .... d ( ) n T n T d    = +     2 2 ( ) ( )T n O n∈( ) ( log )T n O n n∈( ) ( )T n O n∈ 2( ) (log )T n O n∈ 3- .... A[1..6][1..6].A[4][5] A[2][3] 4- .... ‫داراي‬ ‫ﺗﻬﻲ‬ ‫ﻏﻴﺮ‬ ‫دودوﻳﻲ‬ ‫درﺧﺖ‬ ‫ﻳﻚ‬ ‫اﮔﺮ‬20‫دارد؟‬ ‫ﺑﺮگ‬ ‫ﭼﻨﺪ‬ ‫ﺑﺎﺷﺪ‬ ‫ﻓﺮزﻧﺪي‬ ‫دو‬ ‫ﮔﺮه‬ 5- .... : /‐/+abc*+dc7d ab+c/dc+7*‐d/abc/+dc7*+d/‐ab+c/dc7*+‐d/ab+cd‐/c7*+d/ 6- .... ‫ﺻﻔﺤﻪ‬1‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 1010/1010612
  • 2. ):( ‫ﻛﺎرﺷﻨﺎﺳﻲ‬ ‫درس‬ ‫ﻋﻨــﻮان‬ ‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬ ‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬ ,, ::: : : : : ), (,),( ),(),()(, ,, S1S2S3. poppush(i,j)pop(i): poppush(i,j):SiSj. pop(i):Si. poppush 7- .... {x+(y‐[a+b]*c‐[(d+e)])}/(j‐(k‐[l‐n])) 8- .... Q1Q2: Q1: 2, 7, 1, 5, 4, 6, 3 Q2: 2, 4, 7, 5, 3, 6, 1 Q3 i=0; while(!empty(Q1) && !empty(Q2)){ x= delete(Q1); y= delete(Q2); if(x==y) add(Q3, i); } 1, 4, 62, 5, 67, 1, 41, 5, 3 9- .... ‫ﺻﻔﺤﻪ‬2‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 1010/1010612
  • 3. ):( ‫ﻛﺎرﺷﻨﺎﺳﻲ‬ ‫درس‬ ‫ﻋﻨــﻮان‬ ‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬ ‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬ ,, ::: : : : : ), (,),( ),(),()(, ,, . 10- .. .. R=3F=7 11- .... void func(node *list){ if(list) if(list‐>next == null){ free(list); list= null; } else func(list‐>next); } .. .. 12- .. .. )( int func(node *list){ if(list == null) return 0; else if(list‐>next != null){ return list‐>info + func(list‐>next) + func(list‐>next‐>next); else return list‐>info; 13- .... ‫ﺻﻔﺤﻪ‬3‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
  • 4. ):( ‫ﻛﺎرﺷﻨﺎﺳﻲ‬ ‫درس‬ ‫ﻋﻨــﻮان‬ ‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬ ‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬ ,, ::: : : : : ), (,),( ),(),()(, ,, ‫اﻋﺪاد‬ ‫اﮔﺮ‬5‫و‬4‫و‬3‫و‬2‫و‬1‫ﭘﺬﻳﺮ‬ ‫اﻣﻜﺎن‬ ‫ﭘﺸﺘﻪ‬ ‫از‬ ‫اﻋﺪاد‬ ‫ﺧﺮوﺟﻲ‬ ‫ﺗﺮﺗﻴﺐ‬ ‫ﻛﺪام‬ ‫ﺷﻮﻧﺪ‬ ‫ﭘﺸﺘﻪ‬ ‫وارد‬ ‫ﺗﺮﺗﻴﺐ‬ ‫ﺑﻪ‬‫ﻧﻴﺴﺖ؟‬ 4‫و‬5‫و‬3‫و‬2‫و‬11‫و‬3‫و‬2‫و‬5‫و‬45‫و‬1‫و‬2‫و‬4‫و‬31‫و‬5‫و‬2‫و‬4‫و‬3 14- .... int func(node *root){ if(root‐>left != null && root‐>right != null) return 1+func(root‐>leŌ) + func(root‐>right); else return 0 } .. .. 15- .. .. . push. pop. . 16- . . . . ‫ﺻﻔﺤﻪ‬4‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
  • 5. ):( ‫ﻛﺎرﺷﻨﺎﺳﻲ‬ ‫درس‬ ‫ﻋﻨــﻮان‬ ‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬ ‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬ ,, ::: : : : : ), (,),( ),(),()(, ,, 17- . . . . .. DCBAFEIHGIHFDCBGEAFCDBIHAEGDCBFIHGEA 18- .... heapstackBSTqueue 19- .... ‫ﺻﻔﺤﻪ‬5‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
  • 6. ):( ‫ﻛﺎرﺷﻨﺎﺳﻲ‬ ‫درس‬ ‫ﻋﻨــﻮان‬ ‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬ ‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬ ,, ::: : : : : ), (,),( ),(),()(, ,, A ABCEDFGHACBDFGEHABCDFEGHABCFEGDH 20- .... 21- .... ‫ﺻﺤﻴﺢ‬ ‫زﻳﺮ‬ ‫ﻫﺎي‬ ‫ﮔﺰاره‬ ‫از‬ ‫ﻳﻚ‬ ‫ﻛﺪام‬‫ﻧﻴﺴﺖ؟‬ ‫ﻧﺒﺎﺷﺪ‬ ‫ﻳﻜﺘﺎ‬ ‫اﺳﺖ‬ ‫ﻣﻤﻜﻦ‬ ‫ﮔﺮاف‬ ‫ﻳﻚ‬ ‫ﺑﺮاي‬ ‫ﺑﻬﻴﻨﻪ‬ ‫ﭘﻮﺷﺎي‬ ‫درﺧﺖ‬. ‫ﻛﻨﻨﺪ‬ ‫ﻣﻲ‬ ‫اﻳﺠﺎد‬ ‫درﺧﺖ‬ ‫ﻳﻚ‬ ‫ﻫﻤﻮاره‬ ‫اﺳﺘﻔﺎده‬ ‫ﻣﻮرد‬ ‫ﻳﺎﻟﻬﺎي‬ ‫ﮔﺮاف‬ ‫ﻋﻤﻘﻲ‬ ‫ﺟﺴﺘﺠﻮي‬ ‫اﻟﮕﻮرﻳﺘﻢ‬ ‫در‬. ij ‫ﺳﻄﺮ‬ ‫دراﻳﻪ‬‫ﺳﺘﻮن‬ ‫و‬‫ﻣﺎﺗﺮﻳﺲ‬ k Ak ‫ﺣﺪاﻛﺜﺮ‬ ‫ﻃﻮل‬ ‫ﺑﻪ‬ ‫ﻫﺎي‬ ‫ﻣﺴﻴﺮ‬ ‫ﺗﻌﺪاد‬‫دﻫﻨﺪ‬ ‫ﻣﻲ‬ ‫ﻧﺸﺎن‬ ‫را‬. ‫اﺳﺖ‬ ‫زوج‬ ‫ﻫﻤﻴﺸﻪ‬ ‫ﻓﺮد‬ ‫درﺟﻪ‬ ‫ﺑﺎ‬ ‫رﺋﻮس‬ ‫ﺗﻌﺪاد‬ ‫ﺟﻬﺖ‬ ‫ﺑﺪون‬ ‫ﮔﺮاف‬ ‫ﻳﻚ‬ ‫در‬. 22- . . . . ‫ﺻﻔﺤﻪ‬6‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
  • 7. ):( ‫ﻛﺎرﺷﻨﺎﺳﻲ‬ ‫درس‬ ‫ﻋﻨــﻮان‬ ‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬ ‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬ ,, ::: : : : : ), (,),( ),(),()(, ,, 23- . . . . n 1n 1n 1n 1 nnn 1n 1 24- .. .. ‫ﭘﺎﻳﺪار‬ ‫زﻳﺮ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬ ‫روﺷﻬﺎي‬ ‫از‬ ‫ﻳﻚ‬ ‫ﻛﺪام‬‫ﻧﻴﺴﺖ؟‬ ‫ﺣﺒﺎﺑﻲ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬‫ادﻏﺎﻣﻲ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬‫درﺟﻲ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬‫ﻫﺮﻣﻲ‬ ‫ﺳﺎزي‬ ‫ﻣﺮﺗﺐ‬ 25- .... An. int func(int A[], int n){ if(n==1) return A[0]; else return (A[n‐1] + func(A, n‐1)); } 1-, Q1Q2Q1Q2 . 2-, ‫ﺻﻔﺤﻪ‬7‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /
  • 8. ):( ‫ﻛﺎرﺷﻨﺎﺳﻲ‬ ‫درس‬ ‫ﻋﻨــﻮان‬ ‫ﺗﺤﺼﻴﻠﻲ‬ ‫رﺷﺘﻪ‬/‫درس‬ ‫ﻛﺪ‬ ‫ﺳﻮال‬ ‫ﺳﺮي‬ ‫ﺳﻮاﻻت‬ ‫ﺗﻌﺪاد‬:‫ﺗﺴﺘﻲ‬‫آزﻣﻮن‬ ‫زﻣﺎن‬)‫دﻗﻴﻘﻪ‬: (‫ﺗﺴﺘﻲ‬ ‫ﺗﺸﺮﻳﺤﻲ‬‫ﺗﺸﺮﻳﺤﻲ‬ ,, ::: : : : : ), (,),( ),(),()(, ,, . 3-, max heapheap). (. 4-, . . 5-, ‫ﺻﻔﺤﻪ‬8‫از‬8 ‫دوم‬ ‫ﻧﻴﻤﺴﺎل‬1390-91 /