Mathematics for Computer Science: Readings
- The full course textbook, Mathematics for Computer Science, is available for download (PDF 5.9MB).
- This is one of over 2,200 courses on OCW.
- Find materials for this course in the pages linked along the left.
- MIT OpenCourseWare is a free & open publication of material from thousands of MIT courses, covering the entire MIT curriculum.
- No enrollment or registration.
- Freely browse and use OCW materials at your own pace.
- There's no signup, and no start or end dates.
- Knowledge is your reward.
- Use OCW to guide your own life-long learning, or to teach others.
- We don't offer credit or certification for using OCW.
Learn Go by writing Tests: Arrays and slices
- They are different types so it's just the same as trying to pass a string into a function that wants an int.
- If you try and run the tests they will still not compile, you will have to change the first test to pass in a slice rather than an array.
- We need a few function called SumAll which will take a varying number of slices, returning a new slice containing the totals for each slice pass in.
- You could write a function to iterate over each got and want slice and check their values but for convenience sake we can use reflect.DeepEqual which is useful for seeing if any two variables are the same.
- We start with an empty slice (defined in the function signature) and append to it the result of Sum as we work through the varargs.
This 27-year-old MIT graduate explains why she gave up a promising career in tech to help kids get vital job skills
- When she was 17, Netia McCray received a letter inviting her to attend a summer tech program for high school students at MIT.
- The organization is headquartered in Boston, and McCray says she sees many of the same dismal learning conditions for students there as those she's experienced in a few of the African nations with which Mbadika partners.
- To combat that gap, Mbadika uses technologies like 3D printing and virtual reality to get kids excited about learning — and her her favorite pop culture characters, like Marvel's Black Panther, to inspire them.
- McCray says she's inspired by "Black Panther" because to the characters in the story "have not been made victims, they have not had their creative agencies robbed of them," the way many colonized peoples and nations have throughout history.
We just got another sign that the stock market's biggest fear isn't playing out just yet
- The core consumer-price index, a gauge of costs that excludes food and energy products, increased by 0.2% month-on-month in February and 1.8% year-on-year.
- The correction that rocked the stock market in February was preceded by a report that showed the strongest wage growth since the recession — a sign the economy was heating up.
- Investors feared that as inflation reached and possibly exceeded the Federal Reserve's 2% target, the central bank may be inclined to raise interest rates faster than expected.
- The January CPI report, released last month, added fuel to the fire when it showed that core consumer prices (excluding food and energy costs) rose by 2.1% year-on-year, more than expected.
- The CPI and jobs reports for February showed inflation was heating up, but perhaps not quickly enough to immediately alter the Federal Reserve's plans.
Roughly one in four Americans is online ‘constantly’
- Unsurprisingly, young people are more likely to be internet-obsessed than the general population.
- But it’s also worth noting that many of the world’s most valuable companies have built empires by encouraging people to get online; Google and Facebook, for example, have anchored their entire business to people spending time online where they’ll see more advertisements.
- Even modern business tools like Slack seem designed for an always-online worker.
- Facebook and Google are also spending millions on ways to get more people onto the internet.
- Facebook is testing solar-powered drones that would provide constant wireless access to remote areas, and Google wants to do the same with giant balloons.
- Sign up for our Recode Daily newsletter to get the top tech and business news stories delivered to your inbox.
Don’t believe the hype about AI in business
- To borrow a punch line from Duke professor Dan Ariely, artificial intelligence is like teenage sex: “Everyone talks about it, nobody really knows how to do it, everyone thinks everyone else is doing it, so everyone claims they are doing it.” Even though AI systems can now learn a game and beat champions within hours, they are hard to apply to business applications.
- To put it simply, you tell an AI exactly what you want it to learn and provide it with clearly labelled examples, and it analyzes the patterns in those data and stores them for future application.
- According to Wired, by bringing all of its development teams together and making machine learning a corporate focus, Amazon is solving a problem many companies have: disconnected islands of data.
Essential oils in hygiene products may make boys grow breasts
- But just because they’re natural doesn’t mean they’re harmless – two commonly used plant oils seem to mimic female hormones in the body, occasionally causing boys to grow breasts.
- In 2007, doctors reported three cases of prepubescent boys who had started developing small breasts, despite having the expected hormone levels for their sex and age.
- Breast growth in all three boys began when they started using products such as soap or shampoo that contained lavender or tea tree oils.
- To investigate this, Kenneth Korach of the National Institute of Environmental Health Sciences in Durham, North Carolina and his team have been investigating eight chemicals that must be present in a product for it to be marketed as containing either of these plant oils.
- He says girls may also be susceptible to the hormone-disrupting effects, but any breast growth in girls could be mistaken for early puberty.
Life after Trump: White House alumni face uncertain future
- Keep abreast of significant corporate, financial and political developments around the world.
- Stay informed and spot emerging risks and opportunities with independent global reporting, expert commentary and analysis you can trust.
- Answer a few short questions and we'll suggest a subscription for you.
Crypto Trading App Robinhood Expected to Hit $5.6 Billion Valuation with New Funding
- Robinhood’s valuation is expected to jump fourfold to around $5.6 billion, driven by the stock brokerage app’s popularity among millennials.
- The company, which offers cryptocurrency trades in addition to stock trades, is in the process of securing around $350 million from an investor group led by DST Global, a Russian firm.
- The group led Robinhood’s last funding round one year ago, valuing the company then at $1.3 billion, according to The Wall Street Journal.
- Robinhood now ranks among the leading 15 private technology firms in the U.S., thanks to investor confidence that it can gain traction in the financial trading market.
- The gain was driven by an offering of free stock trades that beat the fees of discount brokers.
- Investors looking to earn a good return under the new round of funding are betting Robinhood can approach E*Trade Financial’s valuation.
Can we fix it? The repair cafes waging war on throwaway culture
- He sits down at the table of Colin Haycock, an IT professional who volunteers at the repair cafe, which has been running monthly for about four years and is a place where people can bring all manner of household items to be fixed for free.
- He is vehement about the “right to repair”, a movement opposed to the practices of companies like the machinery company John Deere, which, under copyright laws, doesn’t allow people to fix their own equipment or take them to independent repairers.
- Teaching people how to fix their own gear is at the heart of the Edinburgh Remakery, a store on the main street of Leith that is part repair shop, part secondhand store, part repair education centre.
- Michelle McGagh spent a year without buying new things, which involved a fair amount of fixing as well as going without, her experiences make for fascinating reading.