Find Jobs
Hire Freelancers

Write simple string occurrence counter in Perl

$30-250 USD

취소됨
게시됨 8년 이상 전

$30-250 USD

제출할때 지불됩니다
Write in Perl a script that lists specific length strings that are more common to occur in one inputfile than in the other input file(s). The script must take the following command line inputs: $N $inputfile1 $inputfile2 ... $N must be an integer between 2 and 100, there must be at least two given input files or more. The input files are text files. When started, the script will read each given input file and extract all non-duplicate strings of $N character length. The data is case sensitive. For example, should inputfile1 contain data "foobar" and inputfile2 contain data "foo" and $N = 3, the extracted 3 character strings would be: foo, oob oba, bar. These shall be called SearchWords. The SearchWords must not contain the linefeed characters. After all the SearchWords strings are extracted, the script must count the occurrence of each of SearchWords from all inputfiles and calculate an occurrence rate for each. For example, in the example case of above, the SearchWord "foo" would have occurrence rate of 50% as the SearchWord is found one time in both input files. SearchWords "oob", "oba" and "bar" have occurrence rate of 100% because they are only found in one inputfile. After you know the occurrence rate of a SearchWord and if the occurrence rate is over 90%, write that SearchWord to an outputfile with its occurrence rate. One SearchWord=occurrence rate per line. The script must be able to handle up to 100 input files and must be able to handle big input files (within the limitation of available RAM). The script must report to screen its current progress including the number of SearchWords found per inputfile, how long the analysis has been running and estimate on how long it will still run. The excepted input files will be many megabytes in size. Sample input and output files included. Do not suggest solutions with other programming languages.
프로젝트 ID: 8306383

프로젝트 정보

원격근무 프로젝트
활동 중 9년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다

고객에 대한 정보

국기 (THAILAND)
Turku, Thailand
5.0
591
결제 수단 확인
3월 16, 2011부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.