美文网首页
Python代写:CS110 2D Grid Algorithm

Python代写:CS110 2D Grid Algorithm

作者: kggtz00 | 来源:发表于2019-03-03 15:43 被阅读0次

    代写Python作业,实现一个简单的单词查找器。IntroductionIn this project you will continue to practice developing algorithms to solve problems and practice implementing them in the Python programming language. In particular, you will focus on 2D grids.PreliminariesLog in to gemini and enter these commands to start the project:cs110 start wordfind cd ~/110/wordfind This will copy the “skeleton program” to your account.Next stepsWrite a set of functions that solves the problem of finding words in a grid. These are like word search puzzles.The primary function is wordfind. It takes two parameters: a grid of lower-case single-letter strings, and a list of lower-case words. For each word, find it in the grid, if possible. If found, then for each letter comprising the word in the grid, change the letter to its capitalized version. wordfind returns the number of words that were found. Words can occur in any of the 8 directions. They can also overlap in one or more letters. A word will only occur once in the puzzle.For example, if we begin with a grid:j m w e e e p p q o x u w w e d w g j o and a list of words [‘meow’, ‘wed’, ‘do’, ‘justice’], the wordfind function modifies the grid:j M w e e E p p q O x u w W E D w g j O and returns 3. No output is produced.You can (and should!) break this problem into smaller secondary helper functions. Hint: one of those functions should do a case-insensitive match. You can use the .lower() string method to convert to lower case.What to hand inSubmit your work using the course submission procedure. In this case it iscd ~/110/wordfind submit wordfind This will collect the wordfind.py file. We will only be testing your wordfind function.Evaluation CriteriaYour work will be evaluated according to criteria in two general categories, style and correctness. Each category counts for half of your grade. For this assignment, the criteria are:StyleThe header (large docstring at the top) contains all the appropriate information: your name, the name of the file, etc; and that the program description is accurate and complete,The logic (approach to solving the problem) is clear and reasonably simple,Variable names are descriptive, that is, they accurately describe the values they name,Commenting is accurate and complete, andThe horizontal and vertical spacing effectively enhances the structure of the program.The program is efficient and avoids redundant computations. If the same calculation is used twice, it is better to do it once and store the result in a variable.No variables are unnecessary. A rule-of-thumb is that a variable is necessary only when it names an important part of the logic, or when it is used in the logic more than once after it is assigned.The program makes appropriate use of functions. Your program should be composed of several functions.The program uses simple and clear algorithms that are general and scale well.You use appropriate citations for the work of others (TA’s, web sites, etc.) at the location in the program that the citation applies.“Magic” numbers are avoided. Obvious literals like 1 and 0 are fine, but other numbers should be named by variables for clarity in the logic.CorrectnessThe submission system will evaluate how well your program passes the automatic tests.本团队核心人员组成主要包括硅谷工程师、BAT一线工程师,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全 汇编语言 硬件编程 软件设计 工程标准规等。其中代写编程、代写程序、代写留学生程序作业语言或工具包括但不限于以下范围:C/C++/C#代写Java代写IT代写Python代写辅导编程作业Matlab代写Haskell代写Processing代写Linux环境搭建Rust代写Data Structure Assginment 数据结构代写MIPS代写Machine Learning 作业 代写Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导Web开发、网站开发、网站作业ASP.NET网站开发Finance Insurace Statistics统计、回归、迭代Prolog代写Computer Computational method代做因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com 微信:codehelp

    相关文章

      网友评论

          本文标题:Python代写:CS110 2D Grid Algorithm

          本文链接:https://www.haomeiwen.com/subject/kszpuqtx.html