![數(shù)據(jù)結構(全英文)智慧樹知到期末考試答案章節(jié)答案2024年山東科技大學_第1頁](http://file4.renrendoc.com/view3/M02/31/3B/wKhkFmZQvAuAXUUQAAJKEzR-FEc524.jpg)
![數(shù)據(jù)結構(全英文)智慧樹知到期末考試答案章節(jié)答案2024年山東科技大學_第2頁](http://file4.renrendoc.com/view3/M02/31/3B/wKhkFmZQvAuAXUUQAAJKEzR-FEc5242.jpg)
![數(shù)據(jù)結構(全英文)智慧樹知到期末考試答案章節(jié)答案2024年山東科技大學_第3頁](http://file4.renrendoc.com/view3/M02/31/3B/wKhkFmZQvAuAXUUQAAJKEzR-FEc5243.jpg)
下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
數(shù)據(jù)結構(全英文)智慧樹知到期末考試答案+章節(jié)答案2024年山東科技大學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)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權】 ISO/TS 9546:2024 EN Guidelines for security framework of information systems of third-party payment services
- 二零二五年度汽車消費貸款分款及還款計劃合同
- 2025年度材料運輸車輛維護保養(yǎng)合同
- 2025年度智能倉儲物流系統(tǒng)建設合同-@-3
- 城市供水保障措施計劃
- 急診醫(yī)療資源整合方案計劃
- 班主任指引學生逐夢之路計劃
- 注重細節(jié)提升工作質量計劃
- 借助故事提升小班情感認知計劃
- 班級評比機制的創(chuàng)新計劃
- 2024年醫(yī)療器械經(jīng)營質量管理規(guī)范培訓課件
- 中華人民共和國學前教育法-知識培訓
- 2023年新高考(新課標)全國2卷數(shù)學試題真題(含答案解析)
- GB/T 19228.1-2024不銹鋼卡壓式管件組件第1部分:卡壓式管件
- 2024年計算機二級WPS考試題庫380題(含答案)
- 教科版三年級下冊科學全冊完整課件
- 軌道交通安全專題培訓
- 物理化學完整版答案
- 白條豬的分割表
- 小直徑開敞式TBM遇到軟弱破碎圍巖的施工技術
- 節(jié)流孔板孔徑計算
評論
0/150
提交評論