歐幾里德算法:輾轉(zhuǎn)求余 原理: gcd(a,b)=gcd(b,a mod b) 當(dāng)b為0時(shí),兩數(shù)的最大公約數(shù)即為a getchar()會(huì)接受前一個(gè)scanf的回車符
標(biāo)簽: gcd getchar scanf mod
上傳時(shí)間: 2014-01-10
上傳用戶:2467478207
數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì) 數(shù)據(jù)結(jié)構(gòu)B+樹 B+ tree Library
標(biāo)簽: Library tree 數(shù)據(jù)結(jié)構(gòu) 樹
上傳時(shí)間: 2013-12-31
上傳用戶:semi1981
The purpose of this application note is to show an example of how a digital potentiometer can be used in thefeedback loop of a step-up DC-DC converter to provide calibration and/or adjustment of the output voltage.The example circuit uses a MAX5025 step-up DC-DC converter (capable of generating up to 36V,120mWmax) in conjunction with a DS1845, 256 position, NV digital potentiometer. For this example, the desiredoutput voltage is 32V, which is generated from an input supply of 5V. The output voltage can be adjusted in35mV increments (near 32V) and span a range wide enough to account for resistance, potentiometer and DCDCconverter tolerances (27.6V to 36.7V).
標(biāo)簽: DC-DC 數(shù)字電位器 升壓型 校準(zhǔn)
上傳時(shí)間: 2014-12-23
上傳用戶:781354052
Altium Designer常用器件集成庫PCB封裝庫原理圖庫3D庫元件庫集成庫原理圖器件型號列表:76個(gè)13W3 2N7002 74HC0474HC0874HC244D74HC595 74LS138 80508550 8P4R_0603ADM2582EADM3053AS5145B AT24C02BAT54SBUZZ BatteryCCT6806CD4001CD4053CapacitorDS18B20Diode Diode SchottkyFP6101FT2232DFUSEHMC5883LINA118IR2010IR2101SIR2136SIRF1010EIRFP7404ISO7240InductorLEDLF444LG9110SLM339LM393LMV7239MAX232MCP2551MCP6022MCP6024MPU6050Mic2941Micro SD CardMicro USBNuMicro-M051OPTOISOIPESDxS2UATPT2272PVI1050PhonejackResistanceSN65VHD230STC12LE5202STM32F103CBT6STM32F103RBT6STM32F103VCT6STM32F407VSwitchTJA1050TLV5638ITMS320F28035PAGTMS320F28035PNTOP242U18UC3854ULN2803USB A-BVBUS Xtal 集成庫PCB封裝列表:76個(gè)8P4R_060313W30805DBC04-BBT_CR1220BUZZC0201C0402C0603C0805C1206CD127CPX-32CRYSTALD1206DC-0003DC-0005DIP-4DIP-6DIP-8DO-201ADDO-214AADO-214ABDO-214ACF5mmFUSEFUSE_001FUSE_LFUSE2HC-49/U-SHDRX3L-330uHLCC-24NLPCC-16NLQFP-48LQFP-64LQFP-80Micro SD CardMicro USBR0201R0402R0603R0805R1206R1210R2512SDRH5D18-220NSIP-3SMD CRYSTALSMD-8SOIC-4SOIC-8SOIC-14SOIC-16SOIC-16WSOIC-18SOIC-20SOIC-24SOIC-28SOT-23SOT23-5SOT23-6SWSwitch1TD-19XATO-92TO-92ATO-220-2TO-220ATO-220BTO-247ACTO-263-5TQFP-100TSSOP-16USB DIPUSB-A
標(biāo)簽: altium designer pcb
上傳時(shí)間: 2022-02-12
上傳用戶:
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
標(biāo)簽: government streamline important alphabet
上傳時(shí)間: 2015-06-09
上傳用戶:weixiao99
* 高斯列主元素消去法求解矩陣方程AX=B,其中A是N*N的矩陣,B是N*M矩陣 * 輸入: n----方陣A的行數(shù) * a----矩陣A * m----矩陣B的列數(shù) * b----矩陣B * 輸出: det----矩陣A的行列式值 * a----A消元后的上三角矩陣 * b----矩陣方程的解X
上傳時(shí)間: 2015-07-26
上傳用戶:xauthu
Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標(biāo)簽: Implemented following compile command
上傳時(shí)間: 2014-01-01
上傳用戶:lhc9102
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標(biāo)簽: represented integers group items
上傳時(shí)間: 2016-01-17
上傳用戶:jeffery
(1) 、用下述兩條具體規(guī)則和規(guī)則形式實(shí)現(xiàn).設(shè)大寫字母表示魔王語言的詞匯 小寫字母表示人的語言詞匯 希臘字母表示可以用大寫字母或小寫字母代換的變量.魔王語言可含人的詞匯. (2) 、B→tAdA A→sae (3) 、將魔王語言B(ehnxgz)B解釋成人的語言.每個(gè)字母對應(yīng)下列的語言.
上傳時(shí)間: 2013-12-30
上傳用戶:ayfeixiao
1.有三根桿子A,B,C。A桿上有若干碟子 2.每次移動(dòng)一塊碟子,小的只能疊在大的上面 3.把所有碟子從A桿全部移到C桿上 經(jīng)過研究發(fā)現(xiàn),漢諾塔的破解很簡單,就是按照移動(dòng)規(guī)則向一個(gè)方向移動(dòng)金片: 如3階漢諾塔的移動(dòng):A→C,A→B,C→B,A→C,B→A,B→C,A→C 此外,漢諾塔問題也是程序設(shè)計(jì)中的經(jīng)典遞歸問題
標(biāo)簽: 移動(dòng) 發(fā)現(xiàn)
上傳時(shí)間: 2016-07-25
上傳用戶:gxrui1991
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1