下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
數(shù)據(jù)結(jié)構(gòu)(全英文)智慧樹知到期末考試答案+章節(jié)答案2024年山東科技大學(xué)The
________notation
is
used
in
Computer
Science
to
describe
the
performance
or
complexity
of
an
algorithm.(
)
答案:Big
Oh26.
Identify
the
recursive
expression
to
obtain
the
nth
Fibonacci
number
using
recursion.
(
)
答案:fib(n)=fib(n-1)+fib(n-2)7.
The
data
structure
which
is
designed
to
determine
whether
the
left
and
right
brackets
are
paired
in
the
expression
is:
(
)
答案:StackThetimecomplexityofBinarysearchalgorithmwithnelementsis________.
答案:26.
Binary
search
works
on
________arrays.(
)
答案:sortedConsider
the
following
definition
in
C
programming
languagestruct
node
{
int
data;
struct
node
*
next;}typedef
struct
node
NODE;NODE
*ptr;Which
of
the
following
c
code
is
used
to
create
new
node?(
)
答案:ptr=(NODE*)malloc(sizeof(NODE));If
we
store
the
nodes
of
a
binary
tree
in
an
array
with
index
starting
from
zero,
the
left
child
of
a
node
having
index
n
can
be
obtained
by(
)
答案:2n+1The
common
feature
of
stacks
and
queues
is
(
).
答案:Only
elements
are
allowed
to
be
inserted
and
deleted
at
the
end
pointsIn
a
stack,
the
process
of
removing
an
element
is
called
as
(
)
答案:POPEach
node
in
a
linked
list
contain
minimum
two
fields
one
field
called
data
field
to
store
data.
Another
field
is
of
type
(
)
答案:Pointer
to
node40.
In
the
polynomial,
A(x)=
x4+10x3+3x2+1,
what
is
(exponent,
coefficient)
pair
of
first
term?
(
)
答案:(4,1)Consider
the
following
C
code,
where
stack
is
implemented
using
the
array.#define
MAX
10struct
STACK
{
int
arr[MAX]
int
top
=
__________;}What
will
be
the
initial
value
with
which
top
is
initialized?(
)
答案:-1Array
is
an
example
of
_______
type
memory
allocation.(
)
答案:compile
time59.
Consider
an
integer
array
which
stores
the
values
of
binary
tree
as
(91,6,82,18,4,2,100).
What
is
the
value
of
father
node
of
node
with
value
2?
(
)
答案:82Pushing
element
to
stack
means(
).
答案:Placing
element
at
the
topThe
preorder
traversal
sequence
of
a
binary
search
tree
is
30,
20,
10,
15,
25,
23,
39,
35,
42.Which
one
of
the
following
is
the
postorder
traversal
sequence
of
the
same
tree?(
)
答案:15,
10,
23,
25,
20,
35,
42,
39,
30The
elements
are
removed
form
stack
in
__________order(
)
答案:ReverseIf
we
store
the
nodes
of
a
binary
tree
in
an
array
with
index
starting
from
zero,
the
father
of
a
node
having
index
n
can
be
obtained
by(
)
答案:(n-1)/2User
perform
following
operations
on
stack
of
size
five
:
push(1);pop();push(2);push(3);pop();push(4);pop();pop();push(5);
at
the
end
of
last
operation,
total
number
of
elements
present
in
the
stack
are(
)
答案:D.1Which
of
the
following
tree
traversal
visits
the
root
first?(
)
答案:PreorderA
linear
list
of
elements
in
which
deletion
can
be
done
from
one
end
(front)
and
insertion
can
take
place
only
at
the
other
end
(rear)
is
known
as
a(
)
答案:QueueWhich
of
the
following
term
is
not
used
with
stacks
in
general?
(
)
答案:Front64.
What
of
the
following
statements
is
incorrect
regarding
linked
lists?
(
)
答案:Linked
lists
is
an
example
of
nonlinear
data
structure17.
Logically,
data
structures
can
be
divided
into
two
categories:
(
)
答案:Linear
and
nonlinear18.
Which
of
the
following
data
structures
is
a
linear
structure?
(
)
答案:String25.
Identify
the
recursive
expression
to
find
the
factorial
of
a
number
using
recursion.
(
)
答案:fact(n)=n*fact(n-1)In
algorithm
which
converts
infix
expression
to
postfix
expression.
the
ICP
stands
for(
)
答案:In-Coming
PriorityWhich
of
the
following
data
structures
is
a
nonlinear
structure?
(
)
答案:Binary
tree37.
In
the
polynomial,
A(x)=
x4+10x3+3x2+1,
what
is
the
correct
list
of
exponents
only?
(
)
答案:(4,3,2,0)What
is
the
maximum
number
of
nodes
in
a
binary
tree
with
depth
of
4?
(
)
答案:15If
the
elements
“A”,
“B”,
“C”
and
“D”
are
placed
in
a
queue
and
are
deleted
one
at
a
time,
in
what
order
will
they
be
removed(
)
答案:ABCDIf
two
numbers
in
sequence
in
the
Fibonacci
series
are
13,
21,
what
is
the
next
number?
(
)
答案:3462.
Which
of
the
following
statement
about
the
algorithm
is
wrong:
(
)
答案:All
the
above
statements
are
incorrectA
linear
collection
of
data
element
given
by
means
of
pointer
is
called
(
)
答案:Linked
list23.
Arrows
in
the
flowchart
is
used
for
the
purpose
of
______.(
)
答案:to
decide
the
order
of
steps19.
In
the
following
data,__________is
a
nonlinear
data
structure.
(
)
答案:binary
treeArray
which
is
having
____________
dimensions
is
called
as
2-D
array.(
)
答案:2While
evaluating
expressions
using
computers,
computer
prefer
___________expression.(
)
答案:postfix20.
The
word
algorithm
is
derived
from
the
name
of
__________________.
(
)
答案:Ibn
Musa
Al-KhwarizmiThemaximumnumberofnodesofleveliofabinarytreeis___,fori≥1.
答案:Queues
serve
major
role
in(
)
答案:Simulation
of
limited
resource
allocationConsider
the
following
C
code,
where
stack
is
implemented
using
the
array.#define
MAX
10struct
STACK
{
int
arr[MAX]
int
top
=
-1;}In
this
implementation
of
stack,
maximum
value
of
top
which
cannot
cause
overflow
will(
)
答案:9The
following
numbers
are
inserted
into
an
empty
binary
search
tree
in
the
given
order:
10,1,
3,
5,
15,
12,
16.
What
is
the
height
of
the
binary
search
tree?(
)
答案:4Find
the
correct
statement
(
)
答案:Generating
Fibonacci
series,
and
finding
a
factorial
of
number
programs
can
be
implemented
using
both
iteration
and
recursion.55.
Consider
an
integer
array
which
stores
the
values
of
binary
tree
as
(91,6,82,18,4,2,100).
What
is
the
depth
of
this
binary
tree?
(
)
答案:3Which
of
the
following
case
does
not
exist
in
complexity
theory
(
)
答案:Null
case45.
If
there
are
n
non-zero
terms
in
a
polynomial,
the
size
of
the
array
required
would
be________.(
)
答案:2n+116.
In
a
Binary
Search
Tree,
for
any
root
of
subtree,
the
keys
of
all
nodes
in
its
left
subtree
is
____________to
the
keys
of
all
nodes
in
its
right
subtree.
(
)
答案:less
than
or
equal
to13.
Which
of
the
following
term
is
used
with
queues
in
general?
(
)
答案:rearIn
the
polynomial,
A(x)=
x4+10x3+3x2+1,
if
we
start
representing
using
array,
what
is
the
maximum
size
of
array?
(
)
答案:9Ifwestorethenodesofabinarytreeinanarraywithindexstartingfromzero,therightchildofanodehavingindexncanbeobtainedat:
答案:2n+2Themaximumnumberofnodesinatreeforwhichpostorderandpreordertraversalsmaybeequaltois_______.
答案:1WhichofthefollowingtraversaloutputsthedatainsortedorderinaBST?
答案:InorderWhatisthemaximumnumberchildrenthatabinarytreenodecanhave?
答案:2Supposethenumbers7,5,1,8,3,6,0,9,4,2areinsertedinthatorderintoaninitiallyemptyBinarySearchTree.TheBinarySearchTreeusestheusualorderingonnaturalnumbers.Whatistheinordertraversalsequenceoftheresultanttree?
答案:0123456789Theinordertraversaloftreewillyieldasortedlistingofelementsoftreein
答案:BinarysearchtreesAcompletebinarytreeisatreewhere________________.
答案:everylevelofthetreeiscompletelyfilledexceptthelastlevelAfullbinarytreeisatreewhere________________.
答案:eachnodehasexactlyzeroortwochildren.Toobtainaprefixexpression,whichofthefollowingtraversalsisused?
答案:PreorderTorepresenthierarchicalrelationshipbetweenelements,whichdatastructureissuitable?
答案:treeA
linearlistofdataelementswhereeachelementcallednodeisgivenbymeansofpointeriscalled
答案:linkedlistIndoublylinkedlists,traversalcanbeperformed?
答案:InbothdirectionsWhatisthetimecomplexitytocountthenumberofelementsinthelinkedlist?
答案:O(n)Whatkindoflistisbesttoanswerquestionssuchas:“Whatistheitematpositionn?”
答案:ListimplementedwithanarrayConsideranimplementationofunsortedsinglylinkedlist.Supposeithasrepresentationwhichaheadpointeronly.Giventherepresentation,whichofthefollowingoperationcanbeimplementedinO(1)time?(I).Insertionatthefrontofthelinkedlist.(II).Insertionattheendofthelinkedlist.(III).Deletionofthefrontnodeofthelinkedlist.(IV).Deletionofthelastnodeofthelinkedlist.
答案:IandIIIInwhichofthefollowinglinkedliststherearenoNULLlinks?
答案:CircularlinkedlistThelinkfieldinanodecontains:
答案:addressofthenextnodeInasinglylinkedlistwhichoperationdependsonthelengthofthelist.
答案:DeletethelastelementofthelistLinkedlistdatastructureoffersconsiderablesavingin:
答案:SpaceutilizationandcomputationaltimeAlinearlistinwhicheachnodehaspointerstopointtothepredecessorandsuccessorsnodesiscalledas:
答案:Doubly-linkedlistsOnedifferencebetweenaqueueandastackis:
答案:Queuesusetwoendsforaddinganddeleting,butstacksuseone.Whatisthetimecomplexityofalinearqueuehavingnelements?
答案:O(n)Inaqueuethedeletionsaretakeplaceat_________.
答案:frontOneoftheadvantageofcircularqueueis_____________.
答案:effectiveuseofmemoryInaqueuetheinsertionsaretakeplaceat_________.
答案:rearAqueueisadatastructureinwhichallinsertionsanddeletionsaremaderespectivelyat:
答案:rearandfrontWhatisadequeue?
答案:Aqueuewithinsert/deletedefinedforbothfrontandrearendsofthequeueWhichofthefollowingisnotthetypeofqueue.
答案:singleendedqueueIncircularqueue,thefrontwillalwayspointtooneposition__________fromthefirstelementinthequeue.
答案:counterclockwiseThefollowingdatastructureisusedforschedulingofjobsduringbatchprocessingincomputers.
答案:queueTheelementisinsertedfirstandwillberemovedlastin
_____________.
答案:stackThepostfixformofA*B+C/Dis?
答案:AB*CD/+Thedatastructurerequiredtocheckwhetheranexpressioncontainsbalancedparenthesisis?
答案:StackWhichofthefollowingstatementiscorrect.
答案:ApostfixexpressionisnotthereverseoftheprefixexpressionWhichofthefollowingapplicationsmayuseastack?:
答案:AlloftheaboveAstackisadatastructureinwhichallinsertionsanddeletionsaremaderespectivelyat:
答案:oneendWhichdatastructureisneededtoconvertinfixnotationtopostfixnotation?
答案:StackTransformthefollowinginfixexpressiontopostfixform.
(A+B)*(C-D)/E
答案:AB+CD-*E/Transformthefollowinginfixexpressiontoprefixform.
((C*2)+1)/(A+B)
答案:/+*C21+ABTheexpression1*2^3*4^5*6isevaluatedas(^isforpower,asina^b=ab):
答案:49152WhilerepresentingthesparsematrixA(m×n)withtnon-zerotermsin3-tuplesform,thesizeofthematrixbecomes
答案:(t+1)×3Amatrixhavingalargernumberofelementswithzerovaluesthanthenumberofnon-zeroelementsissaidtobea_____________.
答案:sparsematrixDeletionofanelementfromthearrayreducesthesizeofarrayby___________.
答案:oneWhichofthefollowingstatementistrueregardingTRANSPOSEandFAST_TRANSPOSEalgorithms.
答案:TheTRANSPOSEalgorithmisslowerthanFAST_TRANSPOSEConsideringasparseofm×nmatrixwithtnon-zeroterms,inFAST_TRANSPOSEalgorithm,thesizeofone-dimensionalarray(SorT)isequalto:
答案:nTwodimensionalarraysareusefulwhentheelementsbeingprocessed
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權(quán)】 ISO 14574:2025 EN Fine ceramics (advanced ceramics,advanced technical ceramics) - Mechanical properties of ceramic composites at high temperature - Determination of tensile
- 2025年云南建筑安全員A證考試題庫附答案
- 貴州大學(xué)《集成電路原理》2023-2024學(xué)年第一學(xué)期期末試卷
- 貴陽幼兒師范高等專科學(xué)?!冻傻V規(guī)律與成礦預(yù)測》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025廣東建筑安全員知識題庫
- 2025青海省建筑安全員《C證》考試題庫
- 硅湖職業(yè)技術(shù)學(xué)院《化工原理B》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025年江蘇省安全員A證考試題庫
- 2025湖北省建筑安全員A證考試題庫附答案
- 廣州新華學(xué)院《體育活動(dòng)組織與策劃》2023-2024學(xué)年第一學(xué)期期末試卷
- 數(shù)學(xué)-2025年高考綜合改革適應(yīng)性演練(八省聯(lián)考)
- 2024-2025學(xué)年安徽省六安市金安區(qū)三上數(shù)學(xué)期末調(diào)研試題含解析
- ISO 56001-2024《創(chuàng)新管理體系-要求》專業(yè)解讀與應(yīng)用實(shí)踐指導(dǎo)材料之10:“5領(lǐng)導(dǎo)作用-5.4創(chuàng)新文化”(雷澤佳編制-2025B0)
- 2024年期貨居間業(yè)務(wù)代理合同范本2篇
- 2024-2025學(xué)年上學(xué)期杭州初中英語九年級期末試卷
- 網(wǎng)絡(luò)與信息安全管理組織機(jī)構(gòu)設(shè)置及工作職責(zé)
- 醫(yī)院后勤節(jié)能降耗工作計(jì)劃
- 2024年醫(yī)療器械經(jīng)營質(zhì)量管理規(guī)范培訓(xùn)課件
- 2024國家級天然氣購銷合作協(xié)議模板
- 中國大模型行業(yè)發(fā)展現(xiàn)狀調(diào)查、競爭格局分析及未來前景預(yù)測報(bào)告
- GB/T 19228.1-2024不銹鋼卡壓式管件組件第1部分:卡壓式管件
評論
0/150
提交評論