Cody

# Problem 154. Reverse Boggle

Solution 21769

Submitted on 1 Feb 2012 by eric landiech
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% x = ['TIPE' 'YECV' 'LSRA' 'WOTU']; y = 'RACIEST'; assert(isequal(boggle_checker(x,y),true))

pl = 11 sl = 15 pl = 15 sl = 10 pl = 10 sl = 5 pl = 5 sl = 6 13 pl = 6 13 sl = 7 pl = 7 sl = 1 12 tf = 0 tf = 0 tf = 0 tf = 1 ans(:,:,1) = 0.0819 0.4187 0.5704 0.6236 0.5401 0.8309 0.4131 0.0748 0.2963 ans(:,:,2) = 0.6441 0.8241 0.4514 0.1378 0.7527 0.7059 0.8445 0.9168 0.6764 ans(:,:,3) = 0.4071 0.2348 0.9476 0.9096 0.5646 0.0163 0.8614 0.5004 0.3096 ans(:,:,1,1) = 0.9664 0.8484 0.0993 ans(:,:,2,1) = 0.0415 0.9091 0.5538 ans(:,:,3,1) = 0.8423 0.3135 0.5200 ans(:,:,1,2) = 0.1954 0.0131 0.9466 ans(:,:,2,2) = 0.5340 0.1004 0.4514 ans(:,:,3,2) = 0.7486 0.5321 0.9285 ans(:,:,1,3) = 0.3949 0.1602 0.8465 ans(:,:,2,3) = 0.1637 0.8541 0.8432 ans(:,:,3,3) = 0.4845 0.7740 0.8454 ans(:,:,1,4) = 0.3997 0.5599 0.5173 ans(:,:,2,4) = 0.2922 0.9216 0.4030 ans(:,:,3,4) = 0.9094 0.4836 0.4091 ans(:,:,1,5) = 0.6991 0.8401 0.1908 ans(:,:,2,5) = 0.8664 0.6168 0.4423 ans(:,:,3,5) = 0.6540 0.1184 0.7120 ans(:,:,1,6) = 0.1029 0.5672 0.7373 ans(:,:,2,6) = 0.9190 0.8796 0.3703 ans(:,:,3,6) = 0.7090 0.3808 0.4451 ans(:,:,1,7) = 0.2320 0.5839 0.0142 ans(:,:,2,7) = 0.4085 0.3834 0.1437 ans(:,:,3,7) = 0.7399 0.3248 0.3829 ans = 0.4040 ans = 0.2323

2   Pass
%% x = ['TIPE' 'YECV' 'LSRA' 'WOTU']; y = 'RACIESTS'; assert(isequal(boggle_checker(x,y),false))

pl = 11 sl = 15 pl = 15 sl = 10 pl = 10 sl = 5 pl = 5 sl = 6 13 pl = 6 13 sl = 7 pl = 7 sl = 1 12 tf = 0 tf = 0 tf = 0 pl = 1 12 sl = 7 tf = 0 tf = 0 tf = 0 tf = 1 tf = 0 ans(:,:,1) = 0.9656 0.5321 0.1045 0.1448 0.1009 0.5959 0.4010 0.5808 0.4781 ans(:,:,2) = 0.8163 0.4311 0.7470 0.5737 0.4328 0.3966 0.2106 0.8712 0.1665 ans(:,:,3) = 0.5418 0.6341 0.6590 0.0203 0.4848 0.9723 0.1203 0.9948 0.8807 ans(:,:,1,1) = 0.7046 0.0834 0.4418 ans(:,:,2,1) = 0.0005 0.6786 0.7748 ans(:,:,3,1) = 0.9119 0.3542 0.5438 ans(:,:,1,2) = 0.6532 0.1775 0.9848 ans(:,:,2,2) = 0.0027 0.1958 0.4683 ans(:,:,3,2) = 0.5569 0.2541 0.9950 ans(:,:,1,3) = 0.4466 0.0553 0.6964 ans(:,:,2,3) = 0.2377 0.2997 0.2560 ans(:,:,3,3) = 0.0871 0.5674 0.2661 ans(:,:,1,4) = 0.0320 0.6401 0.6009 ans(:,:,2,4) = 0.1911 0.6879 0.3105 ans(:,:,3,4) = 0.4265 0.3815 0.6247 ans(:,:,1,5) = 0.7845 0.5946 0.6516 ans(:,:,2,5) = 0.5894 0.1592 0.0421 ans(:,:,3,5) = 0.1370 0.2827 0.7569 ans(:,:,1,6) = 0.4150 0.1457 0.7340 ans(:,:,2,6) = 0.6695 0.6355 0.5428 ans(:,:,3,6) = 0.2521 0.0739 0.3872 ans(:,:,1,7) = 0.9547 0.0242 0.5913 ans(:,:,2,7) = 0.8844 0.5819 0.7163 ans(:,:,3,7) = 0.7166 0.3791 0.1543 ans = 0.0350 ans = 0.7265

3   Pass
%% x = ['TIPE' 'YECV' 'LSRA' 'WOTU']; y = 'RACIESTW'; assert(isequal(boggle_checker(x,y),false))

pl = 11 sl = 15 pl = 15 sl = 10 pl = 10 sl = 5 pl = 5 sl = 6 13 pl = 6 13 sl = 7 pl = 7 sl = 1 12 tf = 0 tf = 0 tf = 0 pl = 1 12 sl = 4 tf = 1 tf = 0 ans(:,:,1) = 0.7519 0.1423 0.7809 0.4506 0.4937 0.1394 0.2869 0.3651 0.7464 ans(:,:,2) = 0.6206 0.1176 0.0013 0.9078 0.8707 0.3067 0.7179 0.0660 0.3963 ans(:,:,3) = 0.2859 0.9860 0.7894 0.6491 0.6729 0.0694 0.2602 0.6672 0.2432 ans(:,:,1,1) = 0.5099 0.8657 0.9974 ans(:,:,2,1) = 0.6098 0.0232 0.9056 ans(:,:,3,1) = 0.7874 0.5086 0.7546 ans(:,:,1,2) = 0.6110 0.4222 0.2466 ans(:,:,2,2) = 0.2063 0.3235 0.3568 ans(:,:,3,2) = 0.4080 0.5144 0.9088 ans(:,:,1,3) = 0.1169 0.1800 0.4691 ans(:,:,2,3) = 0.3121 0.9320 0.8778 ans(:,:,3,3) = 0.9894 0.1944 0.8194 ans(:,:,1,4) = 0.6142 0.2352 0.7921 ans(:,:,2,4) = 0.4334 0.1297 0.5703 ans(:,:,3,4) = 0.1278 0.2179 0.4678 ans(:,:,1,5) = 0.4897 0.1935 0.1201 ans(:,:,2,5) = 0.6756 0.9902 0.6572 ans(:,:,3,5) = 0.2264 0.8280 0.3727 ans(:,:,1,6) = 0.6975 0.6450 0.0253 ans(:,:,2,6) = 0.2977 0.9056 0.6582 ans(:,:,3,6) = 0.3020 0.5808 0.3707 ans(:,:,1,7) = 0.1691 0.0414 0.9824 ans(:,:,2,7) = 0.5849 0.6181 0.2800 ans(:,:,3,7) = 0.9022 0.4400 0.2427 ans = 0.4974 ans = 0.7009

4   Pass
%% x = ['TIPE' 'YECV' 'LSRA' 'WOTU']; y = 'AUTOLYTIC'; assert(isequal(boggle_checker(x,y),true))

pl = 15 sl = 16 tf = 0 tf = 0 tf = 0 pl = 16 sl = 1 12 pl = 1 12 sl = 8 pl = 8 sl = 3 tf = 0 tf = 0 tf = 0 tf = 0 tf = 0 tf = 0 pl = 3 sl = 2 pl = 2 sl = 1 12 pl = 1 12 sl = 5 pl = 5 sl = 10 tf = 1 ans(:,:,1) = 0.3231 0.1899 0.4675 0.0129 0.5202 0.8679 0.6508 0.9264 0.4219 ans(:,:,2) = 0.8876 0.4294 0.9796 0.3715 0.3900 0.3075 0.1324 0.9825 0.9319 ans(:,:,3) = 0.7995 0.3678 0.6333 0.9374 0.4093 0.5736 0.6193 0.7196 0.8144 ans(:,:,1,1) = 0.1464 0.2664 0.3745 ans(:,:,2,1) = 0.1031 0.7394 0.3260 ans(:,:,3,1) = 0.5954 0.8919 0.2879 ans(:,:,1,2) = 0.7415 0.4766 0.4147 ans(:,:,2,2) = 0.8277 0.5244 0.4762 ans(:,:,3,2) = 0.8608 0.1307 0.1246 ans(:,:,1,3) = 0.1322 0.6527 0.9782 ans(:,:,2,3) = 0.5886 0.4172 0.0090 ans(:,:,3,3) = 0.8958 0.9753 0.9914 ans(:,:,1,4) = 0.9223 0.1822 0.5621 ans(:,:,2,4) = 0.4999 0.8644 0.3686 ans(:,:,3,4) = 0.9035 0.6153 0.7721 ans(:,:,1,5) = 0.7316 0.9736 0.7914 ans(:,:,2,5) = 0.4602 0.7649 0.9721 ans(:,:,3,5) = 0.2560 0.9157 0.3346 ans(:,:,1,6) = 0.1815 0.4343 0.7606 ans(:,:,2,6) = 0.9164 0.5018 0.3747 ans(:,:,3,6) = 0.7716 0.1898 0.4770 ans(:,:,1,7) = 0.5812 0.8574 0.6715 ans(:,:,2,7) = 0.1934 0.9335 0.5989 ans(:,:,3,7) = 0.6539 0.3754 0.3281 ans = 0.8211 ans = 0.6523

5   Pass
%% x = ['TIPE' 'YECV' 'LSRA' 'WOTU']; y = 'RESTAR'; assert(isequal(boggle_checker(x,y),false))

pl = 11 sl = 6 13 pl = 6 13 sl = 7 pl = 7 sl = 1 12 tf = 0 tf = 0 tf = 0 pl = 1 12 sl = 15 tf = 0 tf = 0 tf = 0 pl = 15 sl = 11 tf = 1 tf = 0 ans(:,:,1) = 0.9945 0.0722 0.2598 0.5999 0.6630 0.7636 0.5187 0.4101 0.8807 ans(:,:,2) = 0.5484 0.0834 0.0460 0.4515 0.3680 0.6406 0.9353 0.0331 0.5102 ans(:,:,3) = 0.5618 0.6269 0.4496 0.2814 0.7089 0.7275 0.6787 0.6154 0.9848 ans(:,:,1,1) = 0.5345 0.7799 0.9915 ans(:,:,2,1) = 0.6366 0.2733 0.6031 ans(:,:,3,1) = 0.6360 0.9111 0.6156 ans(:,:,1,2) = 0.9437 0.2557 0.1982 ans(:,:,2,2) = 0.4439 0.8772 0.3484 ans(:,:,3,2) = 0.1075 0.7647 0.8963 ans(:,:,1,3) = 0.1886 0.6735 0.5159 ans(:,:,2,3) = 0.8620 0.2982 0.3033 ans(:,:,3,3) = 0.2211 0.1398 0.9590 ans(:,:,1,4) = 0.6807 0.8048 0.5362 ans(:,:,2,4) = 0.8215 0.2624 0.6957 ans(:,:,3,4) = 0.8510 0.0872 0.9658 ans(:,:,1,5) = 0.7009 0.0755 0.9428 ans(:,:,2,5) = 0.9625 0.3888 0.5769 ans(:,:,3,5) = 0.8172 0.0765 0.8653 ans(:,:,1,6) = 0.1814 0.8347 0.8410 ans(:,:,2,6) = 0.5086 0.5200 0.3669 ans(:,:,3,6) = 0.9236 0.7002 0.9907 ans(:,:,1,7) = 0.9690 0.0927 0.3706 ans(:,:,2,7) = 0.5302 0.0806 0.7043 ans(:,:,3,7) = 0.3470 0.1123 0.9419 ans = 0.8686 ans = 0.6786

6   Pass
%% x = ['OCEW' 'LRIR' 'GYSI' 'KREM']; y = 'SIRI'; assert(isequal(boggle_checker(x,y),true))

pl = 11 sl = 10 15 pl = 10 15 sl = 6 8 14 tf = 1 ans(:,:,1) = 0.1717 0.0810 0.5725 0.1767 0.0718 0.3254 0.8959 0.0234 0.5249 ans(:,:,2) = 0.4019 0.3427 0.6710 0.6292 0.9567 0.0262 0.6316 0.3333 0.8618 ans(:,:,3) = 0.3352 0.0777 0.6222 0.9201 0.2834 0.5818 0.2461 0.3029 0.6923 ans(:,:,1,1) = 0.1436 0.3480 0.6234 ans(:,:,2,1) = 0.8590 0.4716 0.6907 ans(:,:,3,1) = 0.0938 0.0576 0.8252 ans(:,:,1,2) = 0.0908 0.2064 0.7932 ans(:,:,2,2) = 0.6817 0.4700 0.8978 ans(:,:,3,2) = 0.4085 0.6585 0.9584 ans(:,:,1,3) = 0.3018 0.7249 0.7519 ans(:,:,2,3) = 0.1856 0.5684 0.0611 ans(:,:,3,3) = 0.6833 0.6687 0.1342 ans(:,:,1,4) = 0.8931 0.1697 0.5441 ans(:,:,2,4) = 0.0346 0.8146 0.5951 ans(:,:,3,4) = 0.4058 0.6440 0.3663 ans(:,:,1,5) = 1.0000 0.7060 0.1968 ans(:,:,2,5) = 0.8296 0.3025 0.5230 ans(:,:,3,5) = 0.6249 0.0048 0.7754 ans(:,:,1,6) = 0.2124 0.2040 0.7948 ans(:,:,2,6) = 0.2699 0.8308 0.9973 ans(:,:,3,6) = 0.3954 0.8996 0.5308 ans(:,:,1,7) = 0.0823 0.4185 0.0189 ans(:,:,2,7) = 0.9015 0.3750 0.0118 ans(:,:,3,7) = 0.5011 0.4434 0.8524 ans = 0.7914 ans = 0.9348

7   Pass
%% x = ['OCEW' 'LRIR' 'GYSI' 'KREM']; y = 'SIRIM'; assert(isequal(boggle_checker(x,y),true))

pl = 11 sl = 10 15 pl = 10 15 sl = 6 8 14 tf = 1 ans(:,:,1) = 0.8559 0.6283 0.3236 0.1550 0.0970 0.6451 0.0813 0.0334 0.5843 ans(:,:,2) = 0.6722 0.0793 0.3049 0.7927 0.4342 0.7340 0.3802 0.7855 0.1002 ans(:,:,3) = 0.1728 0.7788 0.9304 0.9251 0.8773 0.4040 0.7884 0.9097 0.2891 ans(:,:,1,1) = 0.7687 0.9439 0.2794 ans(:,:,2,1) = 0.3711 0.2732 0.4735 ans(:,:,3,1) = 0.9605 0.1018 0.5406 ans(:,:,1,2) = 0.3075 0.1517 0.4226 ans(:,:,2,2) = 0.3242 0.5564 0.1844 ans(:,:,3,2) = 0.2149 0.5653 0.9086 ans(:,:,1,3) = 0.6999 0.8855 0.7432 ans(:,:,2,3) = 0.4447 0.1186 0.9393 ans(:,:,3,3) = 0.5965 0.3310 0.2930 ans(:,:,1,4) = 0.5041 0.8448 0.9457 ans(:,:,2,4) = 0.8483 0.5440 0.5208 ans(:,:,3,4) = 0.5262 0.6251 0.2788 ans(:,:,1,5) = 0.5219 0.3302 0.2751 ans(:,:,2,5) = 0.3729 0.9863 0.7534 ans(:,:,3,5) = 0.4460 0.8458 0.5014 ans(:,:,1,6) = 0.5519 0.7428 0.2724 ans(:,:,2,6) = 0.3863 0.7536 0.4935 ans(:,:,3,6) = 0.6652 0.9019 0.3343 ans(:,:,1,7) = 0.2956 0.6181 0.1825 ans(:,:,2,7) = 0.2121 0.8064 0.1087 ans(:,:,3,7) = 0.6773 0.1949 0.3718 ans = 0.7191 ans = 0.3212