wordsearch

Word search algorithm using an m.file

て烟熏妆下的殇ゞ 提交于 2019-12-13 06:44:19
问题 I have already implemented my algorithm using cells of multiple strings on Matlab, but I can't seem to do it through reading a file. On Matlab, I create cells of strings for each line, let's call them line. So I get line= 'string1' 'string2' etc line= 'string 5' 'string7'... line=... and so on. I have over 100s of lines to read. What I'm trying to do is compare the words from to the first line to itself. Then combine the first and second line, and compare the words in the second line to the

Reading errors and file names from a log.txt file

*爱你&永不变心* 提交于 2019-12-12 01:34:07
问题 Continuing from Getting the file name from a text file after string matching - PHP I have a log.txt file in the format: ================================================ Header of entry with date and time ================================================ Loaded options from XML file: '/path/to/the/file/some_file.xml extendedPrintPDF started Postfix '4.4' was append from file 'some-other_file.xml' for file: /path/to/the/file/some-other_file.indd printPDF started PDF Export Preset: Some preset

Solving a wordsearch and delete the found characters

本小妞迷上赌 提交于 2019-12-10 12:23:32
问题 This is the problem: To solve the puzzle you need to search and then delete from the wordsearch all the OCCURRENCES (if multiple) of the words in the list. The letters of the diagram that will remain, taken all in their order by rows and by columns, they will form the solution of the game. Words can appear in the diagram horizontally (from right to left, or from left to right), vertically (downwards or downwards towards the top) and diagonally (from top to bottom or from bottom to top).