this m file can Find a (near) optimal solution to the Traveling Salesman Problem (TSP) by setting up a Genetic Algorithm (GA) to search for the shortest path (least distance needed to travel to each city exactly once) Notes: 1. Input error checking included 2. Inputs can be specified in any order, so long as the parameter pairs are specified as a parameter , value
標簽: Traveling Salesman solution Problem
上傳時間: 2013-12-22
上傳用戶:ruixue198909
Problem Statement You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of input. In case of a tie, return the string that occurs earliest in input. Definition Class: ReverseSubstring Method: findReversed Parameters: string Returns: string Method signature: string findReversed(string input) (be sure your method is public) Notes The substring and its reversal may overlap partially or completely. The entire original string is itself a valid substring (see example 4). Constraints input will contain between 1 and 50 characters, inclusive. each character of input will be an uppercase letter ( A - Z ). Examples 0) "XBCDEFYWFEDCBZ" Returns: "BCDEF" We see that the reverse of BCDEF is FEDCB, which appears later in the string. 1)
上傳時間: 2015-09-21
上傳用戶:sunjet
One-channel queuing system simulator (M/M/1) * Arrival and service times are random and distributed exponetially. * * The simulator is time-slice-driven, i.e. the system model is being * run at discrete time points, with constant increments deltaT. * At each such time moment, program checks if a new item arrival or * release has occurred during previus deltaT.
標簽: One-channel distributed and simulator
上傳時間: 2014-01-15
上傳用戶:kr770906
Lab 2 – Synthesizable MATLAB This lab exercise will explore the effects that different MATLAB coding styles have on hardware. The lab has two parts, each of which begins with a short introduction. This lab exercise is based on the simple MATLAB FIR filter model shown below:
標簽: MATLAB Synthesizable different exercise
上傳時間: 2015-09-28
上傳用戶:sammi
This lab exercise will introduce you to the AccelWare IP generators. AccelWare is a library of over fifty IP generators, available in the form of three toolkits that produce synthesizable MATLAB for common MATLAB built in and toolbox functions. each generator offers macro and micro-architecture selections that allow full customization of the generated model to the target application requirements.
標簽: AccelWare generators introduce exercise
上傳時間: 2013-12-16
上傳用戶:2467478207
This tutorial attempts to get you started developing with the Win32 API as quickly and clearly as possible. It is meant to be read as a whole, so please read it from beginning to end before asking questions... most of them will probably be answered. each section builds on the sections before it. I have also added some solutions to common errors in Appendix A. If you ask me a question that is answered on this page, you will look very silly.
標簽: developing tutorial attempts clearly
上傳時間: 2015-09-29
上傳用戶:wanqunsheng
Embedded computer systems permeate all aspects of our daily lives. Alarm clocks, coffee makers, digital watches, cell phones, and automobiles are just a few of the devices that make use of embedded systems. The design and development of such systems is unique, because the design constraints are different for each system. Essential to the development of an embedded system is an understanding of the hardware and software used for development.
標簽: Embedded computer permeate aspects
上傳時間: 2013-12-15
上傳用戶:erkuizhang
American Gladiator,You are consulting for a game show in which n contestants are pitted against n gladiators in order to see which contestants are the best. The game show aims to rank the contestants in order of strength this is done via a series of 1-on-1 matches between contestants and gladiators. If the contestant is stronger than the gladiator, then the contestant wins the match otherwise, the gladiator wins the match. If the contestant and gladiator have equal strength, then they are “perfect equals” and a tie is declared. We assume that each contestant is the perfect equal of exactly one gladiator, and each gladiator is the perfect equal of exactly one contestant. However, as the gladiators sometimes change from one show to another, we do not know the ordering of strength among the gladiators.
標簽: contestants consulting Gladiator are
上傳時間: 2013-12-18
上傳用戶:windwolf2000
This thesis has recommended mainly systematic design and simulation of the bank ATM (ATM ) realize the course, and has introduced each function module of this system in detail , including deposit and withdraw, transfer accounts, inquire about, revise the concrete course that realize in password and concrete course that realizes of the module
標簽: recommended systematic simulation ATM
上傳時間: 2015-10-06
上傳用戶:yzhl1988
LinCAN is a Linux kernel module that implements a CAN driver capable of working with multiple cards, even with different chips and IO methods. each communication object can be accessed from multiple applications concurrently. It supports RT-Linux, 2.2, 2.4, and 2.6 with fully implemented select, poll, fasync, O_NONBLOCK, and O_SYNC semantics and multithreaded read/write capabilities. It works with the common Intel i82527, Philips 82c200, and Philips SJA1000 (in standard and PeliCAN mode) CAN controllers. LinCAN project is part of a set of CAN/CANopen related components developed as part of OCERA framework.
標簽: implements multiple capable working
上傳時間: 2015-10-14
上傳用戶:磊子226