Good Books

by Edgar A. Guest

Good books are friendly things to own.
If you are busy they will wait.
They will not call you on the phone
Or wake you if the hour is late.
They stand together row by row,
Upon the low shelf or the high.
But if you’re lonesome this you know:
You have a friend or two nearby.

The fellowship of books is real.
They’re never noisy when you’re still.
They won’t disturb you at your meal.
They’ll comfort you when you are ill.
The lonesome hours they’ll always share.
When slighted they will not complain.
And though for them you’ve ceased to care
Your constant friends they’ll still remain.

Good books your faults will never see
Or tell about them round the town.
If you would have their company
You merely have to take them down.
They’ll help you pass the time away,
They’ll counsel give if that you need.
He has true friends for night and day
Who has a few good books to read.

Earth Day

by Jane Yolen

I am the Earth
And the Earth is me.
Each blade of grass,
Each honey tree,
Each bit of mud,
And stick and stone
Is blood and muscle,
Skin and bone.

And just as I
Need every bit
Of me to make
My body fit,
So Earth needs
Grass and stone and tree
And things that grow here
Naturally.

That’s why we
Celebrate this day.
That’s why across
The world we say:
As long as life,
As dear, as free,
I am the Earth
And the Earth is me.


Today is a new day

by Donna Levin

Your tomorrows are as bright
as you want to make them.
There is no reason to carry the darkness
of the past with you into today.
Today is a wonderful new experience,
full of every possibility to make your life
exactly what you want it to be.

Today is the beginning of new happiness,
new directions and new relationships.
Today is the day to remind yourself
that you posses the power and
strength you need to bring contentment,
love and joy into your life.

Today is the day to understand yourself
and to give yourself the love
and the patience that you need.
Today is the day to move forward
towards your bright tomorrow.


After all… tomorrow is another day. – Gone with the Wind

Concrete mathematics, Eulerian mathematics

Cites from the Preface of Concrete Mathematics: A Foundation for Computer Science

One of the present authors had embarked on a series of books called The Art of Computer Programming, and in writing the first volume he (DEK) had found that there were mathematical tools missing from his repertoire; the mathematics he needed for a thorough, well-grounded understanding of computer programs was quite different from what he’d learned as a mathematics major in college.

But what we should ask of educated mathematicians is not what they can speechify about, nor even what they know about the
existing corpus of mathematical knowledge, but rather what can they now do with their learning and whether they can actually solve mathematical problems arising in practice. In short, we look for deeds not words. – John Hammersley

Abstract mathematics was becoming inbred and losing touch with reality; mathematical education needed a concrete counterweight in order to restore a healthy balance.

The heart of mathematics consists of concrete examples and concrete problems. – P. R. Halmos

The material of concrete mathematics may seem at first to be a disparate bag of tricks, but practice makes it into a disciplined set of tools.

It is downright sinful to teach the abstract before the concrete. – Z. A. Melzak

Concrete Mathematics is a bridge to abstract mathematics.

But what exactly is Concrete Mathematics? It is a blend of continuous and discrete mathematics. More concretely, it is the controlled manipulation of mathematical formulas, using a collection of techniques for solving problems. Once you, the reader, have learned the material in this book, all you will need is a cool head, a large sheet of paper, and fairly decent handwriting in order to evaluate horrendous-looking sums, to solve complex recurrence relations, and to discover subtle patterns in data. You will be so fluent in algebraic techniques that you will often find it easier to obtain exact results
than to settle for approximate answers that are valid only in a limiting sense.

The emphasis is on manipulative technique rather than on existence theorems or combinatorial reasoning; the goal is for each reader to become as familiar with discrete operations (like the greatest-integer function and finite summation) as a student of calculus is familiar with continuous operations (like the absolute-value function and infinite integration).

Concrete mathematics is full of appealing patterns; the manipulations are not always easy, but the answers can be astonishingly attractive.

Mathematics is an ongoing endeavor for people everywhere; many strands are being woven into one rich fabric.

My English Words List - April - 2022

collage

collage

noun

cut pictures from magazines to make a collage

Collage

spout

spout

noun

Rain gutter and downspout

  • a pipe for carrying rainwater from a roof

Water was flowing from the spout.

Downspout

trowel

trowel

noun

Masonry trowel

Trowel

haiku

haiku

noun

  • a Japanese poem or form of poetry without rhyme having three lines with the first and last lines having five syllables and the middle having seven

Haiku in English

“Lighting One Candle” by Yosa Buson

The light of a candle

Is transferred to another candle—

Spring twilight

solicit

solicit

verb

The newspaper’s editors want to solicit opinions from readers.

The organization is soliciting for donations.

grumpy

grumpy

adjective

a grumpy neighbor whose yard we had long ago learned not to trespass

I hadn’t had enough sleep and was feeling kind of grumpy.

He is characterized by being moody, grumpy and selfish.

She is very controlling and traditional, as well as grumpy and cranky.

vitamin

vitamin

noun

vitamin C

This cereal contains essential vitamins and minerals.

Vitamin

bunk bed

bunk bed

noun

Children's bunk bed

Bunk bed

bagel

bagel

noun

  • a bread roll shaped like a ring

Sesame bagel

Bagel

puff

puff

noun

  • a light round hollow pastry

Cheese puffs in a bowl

Cheese puffs

Puff pastry

decimate

decimate

verb

The insects decimated thousands of trees.

Pandemic’s sixth wave has ‘decimated’ staffing levels in Waterloo region schools Social Sharing

caretaker

caretaker

noun

We have a caretaker who watches the place for us while we are away.

Property caretaker

sweater

sweater

noun

A jumper

Sweater

scammer

scammer

noun

insurance/credit card scammers

Now that most people are alert to suspicious e-mails and phony phone calls, text messages are the new frontier for scammers out to con you.

scam

scam

noun

an insurance scam

She was the victim of an insurance scam.

a sophisticated credit card scam

verb

The company scammed hundreds of people out of their life savings.

I could tell they were scamming you and charging too much.

scowl

scowl

noun

Beethoven‘s iconic scowl

The teacher gave me a scowl when I walked in late.

She responded to his question with a scowl.

Frown

René Descartes and the Clockwork Girl

by Kathryn Nuernberger

In man, it was written, are found the elements
and their characteristics, for he passes
from cold to hot, moisture to dryness.
He comes into being and passes out of being
like the minerals, nourishes and reproduces
like the plants, has feeling and life
like animals. His figure resembles the terebinth;
his hair, grass; veins, arteries; rivers, canals;
and his bones, the mountains.

Then the vascular system was discovered.
Pump and pulley replaced wind and mill
sweeping blood down those dusty roads.
And Descartes, the first to admit
he supposed a body to be nothing
but a machine made of earth. Mere clockwork.
He found this a comfort because
you can always wind a machine back up.

The Chimera was a clock in the form of a leviathan,
Memento Mori was the shape of skull.
Spheres and pendants, water droplets and pears.
Milkmaids tugging udders on the hour.
Some kept time using Berthold’s new equation,
some invented the second hand. The Silver Swan
sits in a stream of glass ripples and gilded leaves,
swallowing silver-plated fish as music plays.

After Descartes’ daughter died,
he took to the sea. They say he went
so mad with grief he remade her
as automaton. A wind-up cog and lever
elegy hidden in the cargo hold.

He said the body is a machine
and he may well be right about that.
But when she was so hot with fever
she could not breathe, and then so suddenly cold,
he held his fingers on her wrist and felt
only his own heart pumping. All the wind
and water of a daughter became a vast meadow
that has no design and no function
and there is no way beyond that stretch of grass.

Grief, the sailors said, is a hex
and contagion and it will draw the wind
down from the sails. It will stopper
in the glass jar sitting like a heart
in the chamber of a mechanical girl
with mechanical glass eyes. On a ship beleaguered
by storm, they ripped open the box
with a crowbar to find the automaton
Descartes called Francine because he missed
saying her name. They threw her into the wake
and his face became a moon in the black
deep, each wave lapping it under.

He supposed that if you thought hard enough
you should be able to understand,
for example, how a stick would refract
in water even if you had never seen a stick
or water or the light of day. By this means,
he said, your mind will be delivered.

If you think hard enough, you can light a fire
in the hearth. Your child can press herself
against your knee and snug her shoulder into yours
as you wind the clock of a girl like and unlike her,
who can walk three remarkable skips and blink
and curtsy politely before ticking down.

It may be there is no wind blowing
blood through the body, but, arm around her,
you feel how she flushes with fiery amazement
as she puts her little hand over her own
cuckooing heart, because this is what we do
when Papa has taken our breath away.


René Descartes and the Clockwork Girl

Let It Be Forgotten

by Sara Teasdale

Let it be forgotten, as a flower is forgotten,
Forgotten as a fire that once was singing gold,
Let it be forgotten for ever and ever,
Time is a kind friend, he will make us old.

If anyone asks, say it was forgotten
Long and long ago,
As a flower, as a fire, as a hushed footfall
In a long forgotten snow.


Let It Be Forgotten

The Starry Night

The Starry Night, June 1889. Museum of Modern Art, New York

by Anne Sexton

That does not keep me from having a terrible need of—shall I say the word—religion. Then I go out at night to paint the stars.Vincent Van Gogh in a letter to his brother

The town does not exist
except where one black-haired tree slips
up like a drowned woman into the hot sky.
The town is silent. The night boils with eleven stars.
Oh starry starry night! This is how
I want to die.

It moves. They are all alive.
Even the moon bulges in its orange irons
to push children, like a god, from its eye.
The old unseen serpent swallows up the stars.
Oh starry starry night! This is how
I want to die:

into that rushing beast of the night,
sucked up by that great dragon, to split
from my life with no flag,
no belly,
no cry.

One of the most remarkable aspects of the human brain is its ability to recognize patterns and describe them. Among the hardest patterns we’ve tried to understand is the concept of turbulent flow in fluid dynamics. The German physicist Werner Heisenberg said, “When I meet God, I’m going to ask him two questions: why relativity and why turbulence? I really believe he will have an answer for the first.”

As difficult as turbulence is to understand mathematically, we can use art to depict the way it looks. In June 1889, Vincent van Gogh painted the view just before sunrise from the window of his room at the Saint-Paul-de-Mausole asylum in Saint-Rémy-de-Provence, where he’d admitted himself after mutilating his own ear in a psychotic episode. In “The Starry Night,” his circular brushstrokes create a night sky filled with swirling clouds and eddies of stars. Van Gogh and other Impressionists represented light in a different way than their predecessors, seeming to capture its motion, for instance, across sun-dappled waters, or here in star light that twinkles and melts through milky waves of blue night sky. The effect is caused by luminance, the intensity of the light in the colors on the canvas. The more primitive part of our visual cortex, which sees light contrast and motion, but not color, will blend two differently colored areas together if they have the same luminance. But our brains’ primate subdivision will see the contrasting colors without blending. With these two interpretations happening at once, the light in many Impressionist works seems to pulse, flicker and radiate oddly. That’s how this and other Impressionist works use quickly executed prominent brushstrokes to capture something strikingly real about how light moves.

Sixty years later, Russian mathematician Andrey Kolmogorov furthered our mathematical understanding of turbulence when he proposed that energy in a turbulent fluid at length R varies in proportion to the 5/3rds power of R. Experimental measurements show Kolmogorov was remarkably close to the way turbulent flow works, although a complete description of turbulence remains one of the unsolved problems in physics. A turbulent flow is self-similar if there is an energy cascade. In other words, big eddies transfer their energy to smaller eddies, which do likewise at other scales. Examples of this include Jupiter’s Great Red Spot, cloud formations and interstellar dust particles.

In 2004, using the Hubble Space Telescope, scientists saw the eddies of a distant cloud of dust and gas around a star, and it reminded them of Van Gogh’s “Starry Night.” This motivated scientists from Mexico, Spain and England to study the luminance in Van Gogh’s paintings in detail. They discovered that there is a distinct pattern of turbulent fluid structures close to Kolmogorov’s equation hidden in many of Van Gogh’s paintings.
The researchers digitized the paintings, and measured how brightness varies between any two pixels. From the curves measured for pixel separations, they concluded that paintings from Van Gogh’s period of psychotic agitation behave remarkably similar to fluid turbulence. His self-portrait with a pipe, from a calmer period in Van Gogh’s life, showed no sign of this correspondence. And neither did other artists’ work that seemed equally turbulent at first glance, like Munch’s “The Scream.”

While it’s too easy to say Van Gogh’s turbulent genius enabled him to depict turbulence, it’s also far too difficult to accurately express the rousing beauty of the fact that in a period of intense suffering, Van Gogh was somehow able to perceive and represent one of the most supremely difficult concepts nature has ever brought before mankind, and to unite his unique mind’s eye with the deepest mysteries of movement, fluid and light.


Auguries of Innocence

by William Blake

To see a World in a Grain of Sand
And a Heaven in a Wild Flower
Hold Infinity in the palm of your hand
And Eternity in an hour
A Robin Red breast in a Cage
Puts all Heaven in a Rage
A Dove house filld with Doves & Pigeons
Shudders Hell thr’ all its regions
A dog starvd at his Masters Gate
Predicts the ruin of the State
A Horse misusd upon the Road
Calls to Heaven for Human blood
Each outcry of the hunted Hare
A fibre from the Brain does tear
A Skylark wounded in the wing
A Cherubim does cease to sing
The Game Cock clipd & armd for fight
Does the Rising Sun affright
Every Wolfs & Lions howl
Raises from Hell a Human Soul
The wild deer, wandring here & there
Keeps the Human Soul from Care
The Lamb misusd breeds Public Strife
And yet forgives the Butchers knife
The Bat that flits at close of Eve
Has left the Brain that wont Believe
The Owl that calls upon the Night
Speaks the Unbelievers fright
He who shall hurt the little Wren
Shall never be belovd by Men
He who the Ox to wrath has movd
Shall never be by Woman lovd
The wanton Boy that kills the Fly
Shall feel the Spiders enmity
He who torments the Chafers Sprite
Weaves a Bower in endless Night
The Catterpiller on the Leaf
Repeats to thee thy Mothers grief
Kill not the Moth nor Butterfly
For the Last Judgment draweth nigh
He who shall train the Horse to War
Shall never pass the Polar Bar
The Beggars Dog & Widows Cat
Feed them & thou wilt grow fat
The Gnat that sings his Summers Song
Poison gets from Slanders tongue
The poison of the Snake & Newt
Is the sweat of Envys Foot
The poison of the Honey Bee
Is the Artists Jealousy
The Princes Robes & Beggars Rags
Are Toadstools on the Misers Bags
A Truth thats told with bad intent
Beats all the Lies you can invent
It is right it should be so
Man was made for Joy & Woe
And when this we rightly know
Thro the World we safely go
Joy & Woe are woven fine
A Clothing for the soul divine
Under every grief & pine
Runs a joy with silken twine
The Babe is more than swadling Bands
Throughout all these Human Lands
Tools were made & Born were hands
Every Farmer Understands
Every Tear from Every Eye
Becomes a Babe in Eternity
This is caught by Females bright
And returnd to its own delight
The Bleat the Bark Bellow & Roar
Are Waves that Beat on Heavens Shore
The Babe that weeps the Rod beneath
Writes Revenge in realms of Death
The Beggars Rags fluttering in Air
Does to Rags the Heavens tear
The Soldier armd with Sword & Gun
Palsied strikes the Summers Sun
The poor Mans Farthing is worth more
Than all the Gold on Africs Shore
One Mite wrung from the Labrers hands
Shall buy & sell the Misers Lands
Or if protected from on high
Does that whole Nation sell & buy
He who mocks the Infants Faith
Shall be mockd in Age & Death
He who shall teach the Child to Doubt
The rotting Grave shall neer get out
He who respects the Infants faith
Triumphs over Hell & Death
The Childs Toys & the Old Mans Reasons
Are the Fruits of the Two seasons
The Questioner who sits so sly
Shall never know how to Reply
He who replies to words of Doubt
Doth put the Light of Knowledge out
The Strongest Poison ever known
Came from Caesars Laurel Crown
Nought can Deform the Human Race
Like to the Armours iron brace
When Gold & Gems adorn the Plow
To peaceful Arts shall Envy Bow
A Riddle or the Crickets Cry
Is to Doubt a fit Reply
The Emmets Inch & Eagles Mile
Make Lame Philosophy to smile
He who Doubts from what he sees
Will neer Believe do what you Please
If the Sun & Moon should Doubt
Theyd immediately Go out
To be in a Passion you Good may Do
But no Good if a Passion is in you
The Whore & Gambler by the State
Licencd build that Nations Fate
The Harlots cry from Street to Street
Shall weave Old Englands winding Sheet
The Winners Shout the Losers Curse
Dance before dead Englands Hearse
Every Night & every Morn
Some to Misery are Born
Every Morn and every Night
Some are Born to sweet delight
Some are Born to sweet delight
Some are Born to Endless Night
We are led to Believe a Lie
When we see not Thro the Eye
Which was Born in a Night to perish in a Night
When the Soul Slept in Beams of Light
God Appears & God is Light
To those poor Souls who dwell in Night
But does a Human Form Display
To those who Dwell in Realms of day


LeetCode - Algorithms - 162. Find Peak Element

Problem

162. Find Peak Element

Java

eager approach - O(n)

1
2
3
4
5
6
7
8
9
10
11
class Solution {
public int findPeakElement(int[] nums) {
final int len = nums.length;
for (int i = 1; i < len - 1; i++) {
if (nums[i] > nums[i - 1] && nums[i] > nums[i + 1]) {
return i;
}
}
return nums[0] < nums[len - 1] ? len - 1 : 0;
}
}

Submission Detail

  • 63 / 63 test cases passed.
  • Runtime: 0 ms, faster than 100.00% of Java online submissions for Find Peak Element.
  • Memory Usage: 41.3 MB, less than 66.17% of Java online submissions for Find Peak Element.

JavaScript

eager approach

1
2
3
4
5
6
7
8
9
10
11
12
13
/**
* @param {number[]} nums
* @return {number}
*/
var findPeakElement = function(nums) {
const len = nums.length;
for (let i = 1; i < len - 1; i++) {
if (nums[i] > nums[i - 1] && nums[i] > nums[i + 1]) {
return i;
}
}
return nums[0] < nums[len - 1] ? len - 1 : 0;
};

Submission Detail

  • 63 / 63 test cases passed.
  • Runtime: 123 ms, faster than 5.43% of JavaScript online submissions for Find Peak Element.
  • Memory Usage: 42 MB, less than 73.96% of JavaScript online submissions for Find Peak Element.