下面给出了最长公共子序列问题中输出最长公共子序列的函数Print-LCS([img=74x23]1803dee92de4aa2.png[/img])伪代码,其中空白处应分别填入____输入:追踪数组[img=30x19]1803dee9365dfdb.png[/img],序列[img=15x19]1803dee93e380fd.png[/img],当前位置[img=7x18]1803dee945ba22c.png[/img]和[img=8x22]1803dee94e71e8b.png[/img] 输出:[img=104x25]1803dee956ba607.png[/img]的最长公共子序列if then return [img=52x19]1803dee95e6d615.png[/img]endif [img=116x26]1803dee9670d417.png[/img] then Print-LCS([img=30x19]1803dee97068138.png[/img],[img=15x19]1803dee978e55b2.png[/img], , ) print [img=15x17]1803dee98172499.png[/img]else if [img=73x25]1803dee989d4159.png[/img] then Print-LCS([img=30x19]1803dee97068138.png[/img],[img=15x19]1803dee978e55b2.png[/img],[img=30x20]1803dee9a2100d9.png[/img],[img=8x22]1803dee9ae9ca95.png[/img])endelse Print-LCS([img=30x19]1803dee97068138.png[/img],[img=15x19]1803dee978e55b2.png[/img],[img=7x18]1803dee9c855314.png[/img],[img=39x22]1803dee9d0d9610.png[/img])end
A: [img=235x26]1803dee9d8e4640.png[/img]
B: [img=240x26]1803dee9e157294.png[/img]
C: [img=178x26]1803dee9e9d12e3.png[/img]
D: [img=189x26]1803dee9f2766a1.png[/img]
A: [img=235x26]1803dee9d8e4640.png[/img]
B: [img=240x26]1803dee9e157294.png[/img]
C: [img=178x26]1803dee9e9d12e3.png[/img]
D: [img=189x26]1803dee9f2766a1.png[/img]
举一反三
- 下面给出了最长公共子序列问题中输出最长公共子序列的函数Print-LCS([img=74x23]1803dee9e84c6ce.png[/img])伪代码,其中空白处应分别填入____输入:追踪数组[img=30x19]1803dee9f070a2f.png[/img],序列[img=15x19]1803dee9f92dce8.png[/img],当前位置[img=7x18]1803deea0253cc1.png[/img]和[img=8x22]1803deea0b877fc.png[/img]输出:[img=104x25]1803deea13e6f13.png[/img]的最长公共子序列if thenreturn[img=52x19]1803deea1d2598e.png[/img]endif [img=116x26]1803deea258ab93.png[/img]thenPrint-LCS([img=30x19]1803deea2d6495b.png[/img],[img=15x19]1803deea367ae9f.png[/img], , )print[img=15x17]1803deea3ed54d3.png[/img]else if [img=73x25]1803deea469f4fe.png[/img] thenPrint-LCS([img=30x19]1803deea2d6495b.png[/img],[img=15x19]1803deea367ae9f.png[/img],[img=30x20]1803deea5f6d876.png[/img],[img=8x22]1803deea6801fc8.png[/img])endelsePrint-LCS([img=30x19]1803deea2d6495b.png[/img],[img=15x19]1803deea367ae9f.png[/img],[img=7x18]1803deea83b5dc3.png[/img],[img=39x22]1803deea8cce662.png[/img])end A: [img=235x26]1803deea948ffbd.png[/img] B: [img=240x26]1803deea9c9e381.png[/img] C: [img=178x26]1803deeaa460cf5.png[/img] D: [img=189x26]1803deeaad59ed5.png[/img]
- X为随机变量,E(X)=-1,D(X)=3,则[img=105x27]17de66c4ef75d99.png[/img] A: 18 B: 9 C: 30 D: 32
- 已知随机变量 X 的数学期望 E(X)=11,方差 D(X)=9,则估计 P{2<X<20}的取值范围为() A: [img=28x43]1802fe6065b76e3.png[/img][img=46x25]1802fe606e1c270.png[/img] B: [img=28x43]1802fe6076aba53.png[/img] C: [img=28x43]1802fe607ea0895.png[/img] D: [img=28x43]1802fe6087be9d6.png[/img]
- 已知随机变量 X 的数学期望 E(X)=11,方差 D(X)=9,则估计 P{2<X<20}的取值范围为() A: [img=28x43]1802fe6139a446e.png[/img] B: [img=28x43]1802fe61417ad72.png[/img] C: [img=28x43]1802fe61492a572.png[/img] D: [img=28x43]1802fe61530f8d7.png[/img]
- 已知随机变量 X 的数学期望 E(X)=11,方差 D(X)=9,则估计 P{2<X<20}的取值范围为() A: [img=28x43]18030ff69c5f76d.png[/img] B: [img=28x43]18030ff6a55820c.png[/img] C: [img=28x43]18030ff6ae6337b.png[/img] D: [img=28x43]18030ff6b6de939.png[/img]